summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/linuxptp/files/linuxptp-4.2-user_cpp.patch')
-rw-r--r--net-misc/linuxptp/files/linuxptp-4.2-user_cpp.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-misc/linuxptp/files/linuxptp-4.2-user_cpp.patch b/net-misc/linuxptp/files/linuxptp-4.2-user_cpp.patch
new file mode 100644
index 000000000000..f999ed0189b6
--- /dev/null
+++ b/net-misc/linuxptp/files/linuxptp-4.2-user_cpp.patch
@@ -0,0 +1,11 @@
+--- a/incdefs.sh
++++ b/incdefs.sh
+@@ -27,7 +27,7 @@
+ printf " -D_GNU_SOURCE"
+
+ # Get list of directories searched for header files.
+- dirs=$(${CC} -E -Wp,-v -xc /dev/null 2>&1 >/dev/null | grep ^" /")
++ dirs=$(echo "" | ${CPP} -Wp,-v - 2>&1 >/dev/null | grep ^" /")
+
+ # Look for clock_adjtime().
+ for d in $dirs; do