Skip to content

Commit

Permalink
Add missing #include with struct timeval declaration
Browse files Browse the repository at this point in the history
learn.microsoft.com explicitly recommends including winsock.h to get `struct timeval` definition.

Current version breaks when compiling with `-DWIN32_LEAN_AND_MEAN`.
  • Loading branch information
georgthegreat authored Feb 22, 2025
1 parent 26fc9a3 commit 769eb1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ogr/ogr_geocoding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

#include <time.h>
#include <windows.h>
#include <winsock.h>

// Recent mingw define struct timezone.
#if !(defined(__GNUC__) && defined(_TIMEZONE_DEFINED))
Expand Down

0 comments on commit 769eb1d

Please sign in to comment.