From: Björn Jacke Date: Fri, 7 Sep 2012 13:56:15 +0000 (+0200) Subject: build: define _BSD_TYPES on IRIX to have types like u_short X-Git-Tag: samba-4.0.0rc1~153 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c3769b056ee0e7c2243907dc87714587695ea2a;p=thirdparty%2Fsamba.git build: define _BSD_TYPES on IRIX to have types like u_short why the hell do IRIX systems headers like quota.h use types that are available only with such a define...? --- diff --git a/lib/replace/libreplace_cc.m4 b/lib/replace/libreplace_cc.m4 index e316f8b175e..50cb73583ba 100644 --- a/lib/replace/libreplace_cc.m4 +++ b/lib/replace/libreplace_cc.m4 @@ -64,6 +64,7 @@ dnl Add #include for broken IRIX header files case "$host_os" in *irix6*) AC_ADD_INCLUDE() AC_N_DEFINE(_XOPEN_SOURCE,600) + AC_N_DEFINE(_BSD_TYPES) ;; *hpux*) # mmap on HPUX is completely broken... diff --git a/lib/replace/wscript b/lib/replace/wscript index e178cca9cdf..3dbbd2a97a4 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -41,6 +41,7 @@ def configure(conf): # SCM_RIGHTS is only avail if _XOPEN_SOURCE iѕ defined on IRIX if conf.env['SYSTEM_UNAME_SYSNAME'] == 'IRIX': conf.DEFINE('_XOPEN_SOURCE', 600, add_to_cflags=True) + conf.DEFINE('_BSD_TYPES', 1, add_to_cflags=True) conf.CHECK_HEADERS('linux/types.h crypt.h locale.h acl/libacl.h compat.h') conf.CHECK_HEADERS('acl/libacl.h attr/xattr.h compat.h ctype.h dustat.h')