diff options
author | Eric Biggers <ebiggers@google.com> | 2023-01-21 12:31:58 -0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-01-27 12:33:59 -0500 |
commit | 11f1e85ee3b96bdd08c69d8617cd82f5462e7f0b (patch) | |
tree | 4a3a5ce95eb71f9e87995f2fb6d8ce75f3358c4c /util/android_config.h | |
parent | 073feec96664cd241c9e300b42f63aba1a2c9f4f (diff) | |
download | e2fsprogs-11f1e85ee3b96bdd08c69d8617cd82f5462e7f0b.tar.gz |
lib, misc: eliminate dependency on Winsock
Currently Windows builds of e2fsprogs rely on the Windows Socket API
(Winsock) to provide htonl() and ntohl(). For this to actually work,
though, HAVE_WINSOCK_H needs to be defined, and the binaries need to be
linked to -lws2_32. The Android.bp files do this; however, the
autotools-based build system does not.
Since htonl() and ntohl() are trivial, let's instead just add a file
include/mingw/arpa/inet.h with definitions for these.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'util/android_config.h')
-rw-r--r-- | util/android_config.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/util/android_config.h b/util/android_config.h index 6ac16fec..90b8f8a8 100644 --- a/util/android_config.h +++ b/util/android_config.h @@ -36,7 +36,6 @@ #if defined(_WIN32) # define HAVE_LINUX_TYPES_H 1 -# define HAVE_WINSOCK_H 1 #endif #if defined(__APPLE__) || defined(__linux__) # define HAVE_FCNTL 1 |