nixpkgs/pkgs/development/tools/misc/pmccabe/getopt_on_darwin.patch

16 lines
252 B
Diff
Raw Normal View History

2017-04-06 03:05:38 +01:00
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