]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
lib/uuid: remove conflicting Windows implementation of gettimeofday()
authorEric Biggers <ebiggers@google.com>
Sat, 21 Jan 2023 20:32:17 +0000 (12:32 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 17:38:31 +0000 (12:38 -0500)
commit1e2c0e71688eca764d63f7e73a1f2fa5732e6f77
treea6d51bd8ac04b44490df840932f43903b5a6dbcb
parentf6480ab1c55896d49374e0e1875c60776df7cfd1
lib/uuid: remove conflicting Windows implementation of gettimeofday()

When building libuuid for Windows with MinGW with the default settings,
there is a build error in lib/uuid/gen_uuid.c because the explicit
definition of gettimeofday() conflicts with MinGW's declaration of
gettimeofday().  gen_uuid.c apparently expects USE_MINGW to be defined
to avoid that, but the build system doesn't actually do that.

Since native Windows builds of e2fsprogs are currently only supported
via MinGW anyway (in particular, Visual Studio is not supported), let's
fix this by just removing our own definition of gettimeofday().

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/uuid/gen_uuid.c