Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib, misc: eliminate dependency on Winsock
[tools/e2fsprogs.git]
/
include
/
mingw
/
arpa
/
inet.h
diff --git a/include/mingw/arpa/inet.h
b/include/mingw/arpa/inet.h
new file mode 100644
(file)
index 0000000..
55dfa36
--- /dev/null
+++ b/
include/mingw/arpa/inet.h
@@ -0,0
+1,5
@@
+#pragma once
+
+/* Windows is always little endian. */
+#define htonl __builtin_bswap32
+#define ntohl __builtin_bswap32