Skip to content

Commit

Permalink
Merge PR #552
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed May 1, 2023
2 parents 3ffe896 + ac121a0 commit e52accb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ AC_INIT([Haskell network package],
[network])

dnl See also HsNet.h
ac_includes_default="#define _GNU_SOURCE 1 /* for struct ucred on Linux */
ac_includes_default="#ifndef _WIN32
# define _GNU_SOURCE 1 /* for struct ucred on Linux */
#endif
$ac_includes_default

#ifdef _WIN32
Expand Down
4 changes: 3 additions & 1 deletion include/HsNet.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
# endif
#endif

#define _GNU_SOURCE 1 /* for struct ucred on Linux */
#ifndef _WIN32
# define _GNU_SOURCE 1 /* for struct ucred on Linux */
#endif
#define __APPLE_USE_RFC_3542 1 /* for IPV6_RECVPKTINFO */

#ifdef _WIN32
Expand Down

0 comments on commit e52accb

Please sign in to comment.