diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2010-12-31 18:13:03 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-12-31 18:13:03 +0100 |
commit | 35502a5b07eff6a0893989a1ea7edb603087a7c6 (patch) | |
tree | 6f01531225a755be2349a0c168b1092b3cb8d2c3 /common | |
parent | 930bb01fffd23a04d744fab62e94ce8a4bd9e04c (diff) | |
download | eurephia-35502a5b07eff6a0893989a1ea7edb603087a7c6.tar.gz eurephia-35502a5b07eff6a0893989a1ea7edb603087a7c6.tar.xz eurephia-35502a5b07eff6a0893989a1ea7edb603087a7c6.zip |
Look for endian.h in include/sys as well.
On FreeBSD the endian.h file is located in sys/endian.h.
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'common')
-rw-r--r-- | common/passwd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/passwd.c b/common/passwd.c index 217fa0c..91af77e 100644 --- a/common/passwd.c +++ b/common/passwd.c @@ -45,7 +45,11 @@ #include <stdlib.h> #include <string.h> #include <stdint.h> -#include <endian.h> +#ifdef HAVE_SYS_ENDIAN_H +# include <sys/endian.h> +#else +# include <endian.h> +#endif /* HAVE_SYS_ENDIAN_H */ #include <errno.h> #include <limits.h> #include <stdbool.h> |