diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-04 17:20:57 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-04 17:20:57 +0000 |
commit | 6808ec0d471d8b436506bbd7b9db67c28832be76 (patch) | |
tree | 98afe2574ad27b7d4a68a3f05224ace99568c62e | |
parent | 06dee898607ff2bf194d53fb55ad6d82e8f305e8 (diff) | |
download | samba-6808ec0d471d8b436506bbd7b9db67c28832be76.tar.gz samba-6808ec0d471d8b436506bbd7b9db67c28832be76.tar.xz samba-6808ec0d471d8b436506bbd7b9db67c28832be76.zip |
Fix for broken RelientUNIX.
Jeremy.
-rw-r--r-- | source/include/includes.h | 2 | ||||
-rw-r--r-- | source/nsswitch/winbind_nss_config.h | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/source/include/includes.h b/source/include/includes.h index 1c72220d4f4..325880fad9c 100644 --- a/source/include/includes.h +++ b/source/include/includes.h @@ -57,7 +57,7 @@ #ifdef RELIANTUNIX /* * <unistd.h> has to be included before any other to get - * large file support on Reliant UNIX + * large file support on Reliant UNIX. Yes, it's broken :-). */ #ifdef HAVE_UNISTD_H #include <unistd.h> diff --git a/source/nsswitch/winbind_nss_config.h b/source/nsswitch/winbind_nss_config.h index c8e43f396c2..0f2008fc20f 100644 --- a/source/nsswitch/winbind_nss_config.h +++ b/source/nsswitch/winbind_nss_config.h @@ -29,6 +29,16 @@ #include <config.h> +#ifdef RELIANTUNIX +/* + * <unistd.h> has to be included before any other to get + * large file support on Reliant UNIX. Yes, it's broken :-). + */ +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif +#endif /* RELIANTUNIX */ + #include <stdio.h> #ifdef HAVE_STDLIB_H |