File: 10-kernel-includes-fix.patch

package info (click to toggle)
dx 1%3A4.4.4-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 56,128 kB
  • sloc: ansic: 365,481; cpp: 156,584; sh: 10,872; java: 10,641; makefile: 2,294; javascript: 837; awk: 444; yacc: 327
file content (19 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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