From: Daniel Kobras <kobras@debian.org>
Subject: Include files in linux/ are kernel headers that should never be
 pulled in directly by regular applications, and indeed they're
 superfluous (theses days, at least). Current distributions
 tend to ship without these files installed by default, hence
 removing the includes avoid build failures.

diff -urNad dx~/src/exec/libdx/memory.c dx/src/exec/libdx/memory.c
--- dx~/src/exec/libdx/memory.c	2006-01-27 11:29:54.000000000 +0100
+++ dx/src/exec/libdx/memory.c	2007-06-12 20:21:32.000000000 +0200
@@ -65,8 +65,6 @@
 #endif
 
 #if linux
-#include <linux/kernel.h>
-#include <linux/sys.h>
 #include <sys/sysinfo.h>
 #endif
 
