Skip to content

Commit e520c20

Browse files
Copilotyhirose
andcommitted
Add #undef _res after including resolv.h to prevent macro conflicts
Co-authored-by: yhirose <[email protected]>
1 parent 5f0d526 commit e520c20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

httplib.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ using socklen_t = int;
257257
#include <netinet/in.h>
258258
#ifdef __linux__
259259
#include <resolv.h>
260+
#undef _res
260261
#endif
261262
#include <csignal>
262263
#include <netinet/tcp.h>

0 commit comments

Comments
 (0)