summaryrefslogtreecommitdiffstats
path: root/test-ntohl.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-08-05 23:15:08 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-08-05 23:15:08 +0000
commit1bb4f8bb9e7406c14961365a652ce2e16ab7664c (patch)
tree2a8129ceef5cd8f7b879e2e237d86550acfc26da /test-ntohl.c
parent1f861fd3370a3a1e8fe52966b1dc54ac8e106cd9 (diff)
downloadmandoc-1bb4f8bb9e7406c14961365a652ce2e16ab7664c.tar.gz
The concept of endianness seems to be somewhat newfangled, so the
respective conversion functions are not yet properly standardized. Rumour has it that POSIX is working on it, though. For now, sprinkle some configuration glue.
Diffstat (limited to 'test-ntohl.c')
-rw-r--r--test-ntohl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-ntohl.c b/test-ntohl.c
new file mode 100644
index 00000000..52dcc256
--- /dev/null
+++ b/test-ntohl.c
@@ -0,0 +1,7 @@
+#include <arpa/inet.h>
+
+int
+main(void)
+{
+ return htonl(ntohl(0x3a7d0cdb)) != 0x3a7d0cdb;
+}