File: 0003-Fix-ordering-of-include-dirs.patch

package info (click to toggle)
make-dfsg 4.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,948 kB
  • sloc: ansic: 31,304; sh: 5,222; perl: 1,716; makefile: 162; lisp: 26; sed: 16
file content (33 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Manoj Srivastava <srivasta@debian.org>
Date: Fri, 5 Jun 2020 18:52:03 -0700
Subject: Fix ordering of include dirs

There has been a long standing bug where INCLUDE_DIRS /usr/include is
included twice. The more important problem is it is before the
/usr/local/include.

Last-Update: 2023-02-12
---
 src/read.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/src/read.c
+++ b/src/read.c
@@ -107,14 +107,14 @@
    This is defined as a placeholder.  */
 # define INCLUDEDIR "."
 #endif
-#if defined(INCLUDEDIR)
-    INCLUDEDIR,
-#endif
 #ifndef _AMIGA
     "/usr/gnu/include",
     "/usr/local/include",
     "/usr/include",
 #endif
+#if defined(INCLUDEDIR)
+    INCLUDEDIR,
+#endif
     0
   };