-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
socklen_t: guard with __socklen_t_defined macro
modified: network/socklen_t.h
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* typedef socklen_t for OS/2 kLIBC | ||
* Define socklen_t for OS/2 kLIBC | ||
* | ||
* Copyright (C) 2014 KO Myung-Hun <[email protected]> | ||
* Copyright (C) 2014-2021 KO Myung-Hun <[email protected]> | ||
* | ||
* This program is free software. It comes without any warranty, to | ||
* the extent permitted by applicable law. You can redistribute it | ||
|
@@ -13,6 +13,11 @@ | |
#ifndef OS2COMPAT_SOCKLEN_T_H | ||
#define OS2COMPAT_SOCKLEN_T_H | ||
|
||
#include <sys/socket.h> | ||
|
||
#ifndef __socklen_t_defined | ||
typedef int socklen_t; | ||
#define __socklen_t_defined | ||
#endif | ||
|
||
#endif |