summaryrefslogtreecommitdiff
path: root/usr.sbin/ntp/config.h
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2015-05-04 12:42:52 +0000
committerCy Schubert <cy@FreeBSD.org>2015-05-04 12:42:52 +0000
commit36428b7e17d7b788b78797684ade1681a01b7a5c (patch)
tree0208bd04222f45e44bfe8c1abb78047970d1d0c6 /usr.sbin/ntp/config.h
parenta25439b68651d176ae05867f5090d45fd85e9f24 (diff)
Notes
Diffstat (limited to 'usr.sbin/ntp/config.h')
-rw-r--r--usr.sbin/ntp/config.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/usr.sbin/ntp/config.h b/usr.sbin/ntp/config.h
index 041ad0ab6935b..8bcf6e65387fe 100644
--- a/usr.sbin/ntp/config.h
+++ b/usr.sbin/ntp/config.h
@@ -1469,13 +1469,21 @@
/* #undef SCO5_CLOCK */
/* The size of `char*', as computed by sizeof. */
+#if defined(__alpha__) || defined(__sparc64__) || defined(__amd64__)
#define SIZEOF_CHARP 8
+#else
+#define SIZEOF_CHARP 4
+#endif
/* The size of `int', as computed by sizeof. */
#define SIZEOF_INT 4
/* The size of `long', as computed by sizeof. */
+#if defined(__alpha__) || defined(__sparc64__) || defined(__amd64__)
#define SIZEOF_LONG 8
+#else
+#define SIZEOF_LONG 4
+#endif
/* The size of `long long', as computed by sizeof. */
#define SIZEOF_LONG_LONG 8
@@ -1490,7 +1498,11 @@
#define SIZEOF_SIGNED_CHAR 1
/* The size of `time_t', as computed by sizeof. */
+#if defined(__alpha__) || defined(__sparc64__) || defined(__amd64__)
#define SIZEOF_TIME_T 8
+#else
+#define SIZEOF_TIME_T 4
+#endif
/* Does SIOCGIFCONF return size in the buffer? */
/* #undef SIZE_RETURNED_IN_BUFFER */
@@ -1516,7 +1528,15 @@
/* #undef STRERROR_R_CHAR_P */
/* canonical system (cpu-vendor-os) of where we should run */
-#define STR_SYSTEM "amd64-portbld-freebsd10.1"
+#if defined(__alpha__)
+#define STR_SYSTEM "alpha-undermydesk-freebsd"
+#elif defined(__sparc64__)
+#define STR_SYSTEM "sparc64-undermydesk-freebsd"
+#elif defined(__amd64__)
+#define STR_SYSTEM "amd64-undermydesk-freebsd"
+#else
+#define STR_SYSTEM "i386-undermydesk-freebsd"
+#endif
/* Does Xettimeofday take 1 arg? */
/* #undef SYSV_TIMEOFDAY */