summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/util/longsize.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/xntpd/util/longsize.c')
-rw-r--r--usr.sbin/xntpd/util/longsize.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.sbin/xntpd/util/longsize.c b/usr.sbin/xntpd/util/longsize.c
new file mode 100644
index 0000000..6bdbdfe
--- /dev/null
+++ b/usr.sbin/xntpd/util/longsize.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+
+main()
+{
+ if (sizeof(long) == 8) {
+ printf("-DLONG8\n");
+ } else if (sizeof(long) == 4) {
+ printf("-DLONG4\n");
+ }
+ exit(0);
+}
OpenPOWER on IntegriCloud