pmccabe: darwin is supported too

This commit is contained in:
Peter Hoeg
2017-04-06 16:53:01 +08:00
parent b0d07aa894
commit ca0493ff63
2 changed files with 20 additions and 1 deletions
@@ -0,0 +1,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