summaryrefslogtreecommitdiff
path: root/graphics/graphviz/files/patch-lefty::common.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2004-11-05 19:07:08 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2004-11-05 19:07:08 +0000
commit1d62ba425ffe74df352f6c6121ef87952fbcdc59 (patch)
tree38a0f2dc58eb5bff954efce2f3b53be2e0034f66 /graphics/graphviz/files/patch-lefty::common.h
parent- Update to 1.2.2 (diff)
Fix RELENG_4 build by reordering system includes in lefty/common.h.
<sys/types.h> should always come before any other headers.
Diffstat (limited to 'graphics/graphviz/files/patch-lefty::common.h')
-rw-r--r--graphics/graphviz/files/patch-lefty::common.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/graphics/graphviz/files/patch-lefty::common.h b/graphics/graphviz/files/patch-lefty::common.h
new file mode 100644
index 000000000000..997b1fb5e67c
--- /dev/null
+++ b/graphics/graphviz/files/patch-lefty::common.h
@@ -0,0 +1,22 @@
+--- lefty/common.h.orig Fri Nov 5 19:56:20 2004
++++ lefty/common.h Fri Nov 5 20:00:50 2004
+@@ -53,6 +53,9 @@
+ #ifdef FEATURE_CS
+ #include <ast.h>
+ #else
++#ifdef HAVE_SYS_TYPES_H
++#include <sys/types.h>
++#endif
+ #ifdef HAVE_STDLIB_H
+ #include <stdlib.h>
+ #endif
+@@ -67,9 +70,6 @@
+ #endif
+ #ifdef HAVE_LIMITS_H
+ #include <limits.h>
+-#endif
+-#ifdef HAVE_SYS_TYPES_H
+-#include <sys/types.h>
+ #endif
+ #ifdef HAVE_SYS_STAT_H
+ #include <sys/stat.h>