Cyril Brulebois <[EMAIL PROTECTED]> (20/03/2007):
> Please find attached a patch to add support for GNU/kFreeBSD.

Please find attached another patch with a better second chunk, which
should be more portable and meaningful, since the conditional inclusion
is self-documented.

Cheers,

-- 
Cyril Brulebois
--- vnc-3.3.7/Xvnc/config/cf/Imake.cf	2007-03-20 19:29:25.000000000 +0100
+++ vnc-3.3.7/Xvnc/config/cf/Imake.cf	2007-03-20 19:29:25.000000000 +0100
@@ -600,7 +600,7 @@
 # define Win32Architecture
 #endif /* WIN32 */
 
-#ifdef linux 
+#if defined(linux) || defined(__GLIBC__)
 # define MacroIncludeFile <linux.cf>
 # define MacroFile linux.cf
 # undef linux
--- vnc-3.3.7/Xvnc/programs/Xserver/os/xalloc.c	2007-03-20 19:29:25.000000000 +0100
+++ vnc-3.3.7/Xvnc/programs/Xserver/os/xalloc.c	2007-03-20 19:29:25.000000000 +0100
@@ -241,7 +241,9 @@
 #define HAS_MMAP_ANON
 #include <sys/types.h>
 #include <sys/mman.h>
+#if !defined(_SC_PAGESIZE)
 #include <asm/page.h>	/* PAGE_SIZE */
+#endif
 #endif /* linux */
 
 #if defined(CSRG_BASED)

Attachment: pgpaDZhZKXFNW.pgp
Description: PGP signature

Reply via email to