summaryrefslogtreecommitdiffstats
path: root/flags
diff options
context:
space:
mode:
Diffstat (limited to 'flags')
-rw-r--r--flags/myflag.h12
-rw-r--r--flags/myflag.h22
-rw-r--r--flags/time.h117
-rw-r--r--flags/try_clock_gettime.c17
4 files changed, 38 insertions, 0 deletions
diff --git a/flags/myflag.h1 b/flags/myflag.h1
new file mode 100644
index 0000000..761823e
--- /dev/null
+++ b/flags/myflag.h1
@@ -0,0 +1,2 @@
+
+#define HAS_MYFLAG 1
diff --git a/flags/myflag.h2 b/flags/myflag.h2
new file mode 100644
index 0000000..2085feb
--- /dev/null
+++ b/flags/myflag.h2
@@ -0,0 +1,2 @@
+
+#define HAS_MYFLAG 0
diff --git a/flags/time.h1 b/flags/time.h1
new file mode 100644
index 0000000..b6aa5af
--- /dev/null
+++ b/flags/time.h1
@@ -0,0 +1,17 @@
+#include <stdlib.h>
+#include <unistd.h>
+#ifdef SYSV
+ #include <time.h>
+#else
+ #include <sys/time.h>
+#endif
+
+
+int main(void)
+{
+ struct timespec s;
+ clock_gettime(CLOCK_REALTIME, &s);
+ return EXIT_SUCCESS;
+}
+
+
diff --git a/flags/try_clock_gettime.c b/flags/try_clock_gettime.c
new file mode 100644
index 0000000..b6aa5af
--- /dev/null
+++ b/flags/try_clock_gettime.c
@@ -0,0 +1,17 @@
+#include <stdlib.h>
+#include <unistd.h>
+#ifdef SYSV
+ #include <time.h>
+#else
+ #include <sys/time.h>
+#endif
+
+
+int main(void)
+{
+ struct timespec s;
+ clock_gettime(CLOCK_REALTIME, &s);
+ return EXIT_SUCCESS;
+}
+
+