]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Fix #include <sys/mman.h> breakage
authorHarlan Stenn <stenn@ntp.org>
Mon, 7 Aug 2006 22:41:58 +0000 (18:41 -0400)
committerHarlan Stenn <stenn@ntp.org>
Mon, 7 Aug 2006 22:41:58 +0000 (18:41 -0400)
bk: 44d7c1b6rA0C6PoA85f3GXR_50qfmA

libopts/compat/compat.h
sntp/libopts/compat/compat.h

index 99db02eda63a1eb38597dfd00219d358f889dead..247c5a1aa63747bf818ab9e881c8f76809312476 100644 (file)
@@ -37,7 +37,9 @@
  *  SYSTEM HEADERS:
  */
 #include <sys/types.h>
-//#include <sys/mman.h>
+#if HAVE_SYS_MMAN_H
+#  include <sys/mman.h>
+#endif
 #include <sys/param.h>
 #if HAVE_SYS_PROCSET_H
 #  include <sys/procset.h>
index 1b18633b5ade782ae3399d6683a5a1ec6841e667..8375ac53d6cdef6d702c9c8971b5f09bccf5a5e8 100644 (file)
@@ -37,7 +37,9 @@
  *  SYSTEM HEADERS:
  */
 #include <sys/types.h>
-#include <sys/mman.h>
+#if HAVE_SYS_MMAN_H
+#  include <sys/mman.h>
+#endif
 #include <sys/param.h>
 #if HAVE_SYS_PROCSET_H
 #  include <sys/procset.h>