-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #553 from haskell/kazu/unix-domain-for-win
supporting AF_UNIX on Windows
- Loading branch information
Showing
7 changed files
with
40 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* The version of afunix.h provided by the version of MSYS2 included with x86 | ||
* versions of GHC before GHC 9.2 excludes certain components introduced with | ||
* Windows Vista. | ||
*/ | ||
|
||
#ifndef AFUNIX_COMPAT_H | ||
#define AFUNIX_COMPAT_H | ||
|
||
#if defined(_AFUNIX_) || !defined(_WIN32) || __GLASGOW_HASKELL__ > 902 | ||
# include <afunix.h> | ||
#else | ||
|
||
#define UNIX_PATH_MAX 108 | ||
|
||
typedef struct sockaddr_un { | ||
ADDRESS_FAMILY sun_family; | ||
char sun_path[UNIX_PATH_MAX]; | ||
} SOCKADDR_UN, *PSOCKADDR_UN; | ||
|
||
#define SIO_AF_UNIX_GETPEERPID _WSAIOR(IOC_VENDOR, 256) | ||
|
||
#endif /* GHC version check */ | ||
#endif /* AFUNIX_COMPAT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters