diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-02-02 10:40:06 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-02-03 05:26:11 +0100 |
commit | 1e42aa6b3a2912426caebaf89596fa7c9f19ba2e (patch) | |
tree | 187d43056c44bf9a773980e085aeb824b23aa7ec /lib/replace/libreplace.m4 | |
parent | 5f18925e695d0c271aea456a4ee63aeb1e8bbf96 (diff) | |
download | samba-1e42aa6b3a2912426caebaf89596fa7c9f19ba2e.tar.gz samba-1e42aa6b3a2912426caebaf89596fa7c9f19ba2e.tar.bz2 samba-1e42aa6b3a2912426caebaf89596fa7c9f19ba2e.zip |
replace: Try to fix broken sys/capabilites.h on Linux.
As this is more or less a broken header we need to include linux/types.h
before sys/capabilities.h to avoid redefinitions.
Systems like ClearOS 5.2 need linux/types.h very early.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Feb 3 05:26:12 CET 2011 on sn-devel-104
Diffstat (limited to 'lib/replace/libreplace.m4')
-rw-r--r-- | lib/replace/libreplace.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4 index 3dd64ef8b8..24fc5cdafe 100644 --- a/lib/replace/libreplace.m4 +++ b/lib/replace/libreplace.m4 @@ -89,6 +89,8 @@ AC_INCLUDES_DEFAULT #endif] ) +AC_CHECK_HEADERS(linux/types.h) + AC_CACHE_CHECK([for working mmap],libreplace_cv_HAVE_MMAP,[ AC_TRY_RUN([#include "$libreplacedir/test/shared_mmap.c"], libreplace_cv_HAVE_MMAP=yes,libreplace_cv_HAVE_MMAP=no,libreplace_cv_HAVE_MMAP=cross)]) |