about summary refs log tree commit diff
path: root/src/portab/portab.h
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2012-10-11 14:54:13 +0000
committerAlexander Barton <alex@barton.de>2012-10-11 14:54:13 +0000
commite0da56fc7b1dae4e21dfda7e0ac8ad7594135986 (patch)
tree9126766a38c2d5778727dd0176bacd9fac1fd62a /src/portab/portab.h
parentcdaaae0cb2c2b30db8bb61506a826ff87c58f7c8 (diff)
downloadngircd-e0da56fc7b1dae4e21dfda7e0ac8ad7594135986.tar.gz
ngircd-e0da56fc7b1dae4e21dfda7e0ac8ad7594135986.zip
Disable UID/GID checks on "single user OS"
Don't abort on "single user operating systems" that don't know more than
one user account and therefore can't change user and group IDs.

Currently, the only such system supported by ngIRCd is Haiku, a BeOS
clone.
Diffstat (limited to 'src/portab/portab.h')
-rw-r--r--src/portab/portab.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/portab/portab.h b/src/portab/portab.h
index 1c6e3f85..208d3500 100644
--- a/src/portab/portab.h
+++ b/src/portab/portab.h
@@ -112,7 +112,6 @@ typedef unsigned char bool;
 
 /* SPLint */
 
-
 #ifdef S_SPLINT_S
 #include "splint.h"
 #endif
@@ -132,6 +131,9 @@ typedef unsigned char bool;
 #define HOST_VENDOR "unknown"
 #endif
 
+#ifdef __HAIKU__
+#define SINGLE_USER_OS
+#endif
 
 /* configure options */