about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/pmccabe/getopt_on_darwin.patch
blob: 534d6c1d6ef77d1642e95220cb227e172af57f6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/decomment.c b/decomment.c
index 400707a..aea29fd 100644
--- a/decomment.c
+++ b/decomment.c
@@ -11,6 +11,10 @@
 #include "getopt.h"
 #endif
 
+#ifdef __APPLE__
+#include "getopt.h"
+#endif
+
 #ifdef NEED_OPTIND
 extern int optind;
 #endif