summaryrefslogtreecommitdiff
path: root/devel/popt/patches/patch-poptint.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/popt/patches/patch-poptint.h')
-rw-r--r--devel/popt/patches/patch-poptint.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/popt/patches/patch-poptint.h b/devel/popt/patches/patch-poptint.h
new file mode 100644
index 00000000000..7fd1878a9bf
--- /dev/null
+++ b/devel/popt/patches/patch-poptint.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-poptint.h,v 1.1 2011/04/01 21:28:32 tez Exp $
+
+Don't include stdint.h if it does not exist. Fixes PR#44770
+
+--- poptint.h.orig 2011-04-01 21:07:17.593937200 +0000
++++ poptint.h
+@@ -9,7 +9,9 @@
+ #ifndef H_POPTINT
+ #define H_POPTINT
+
++#ifdef HAVE_STDINT_H
+ #include <stdint.h>
++#endif
+
+ /**
+ * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.