summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-05-15 10:19:02 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-05-15 10:19:02 +0000
commit91d4cacaab34a58e774332f2cf9f80b90200a9b0 (patch)
tree73b7715f459f37a5f6c1125b5d795cbf3b59c5f1
parent70aa3c435bb306f3bbd5dcfadbd7b1d1fcddc288 (diff)
Checks for HAVE_GETOPT_LONG_ONLY before including system getop.h file.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1666 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r--src/include/cctk_GNU.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/cctk_GNU.h b/src/include/cctk_GNU.h
index a6d621dd..1a848270 100644
--- a/src/include/cctk_GNU.h
+++ b/src/include/cctk_GNU.h
@@ -13,8 +13,20 @@
#include "cctk_Config.h"
+#ifdef HAVE_GETOPT_H
+#ifdef HAVE_GETOPT_LONG_ONLY
+#include <getopt.h>
+#else
#include "../gnu/getopt.h"
+#endif
+#else
+#include "../gnu/getopt.h"
+#endif
+#ifdef HAVE_REGEX_H
+#include <regex.h>
+#else
#include "../gnu/regex.h"
+#endif
#endif /* _CCTK_GNU_H_ */