Skip to content

Commit

Permalink
socklen_t: guard with __socklen_t_defined macro
Browse files Browse the repository at this point in the history
    modified:   network/socklen_t.h
  • Loading branch information
komh committed Oct 11, 2021
1 parent b2aece7 commit 1471efe
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions network/socklen_t.h
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
Expand All @@ -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

0 comments on commit 1471efe

Please sign in to comment.