3 Star 1 Fork 3

Gitee 极速下载 / xl2tpd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/xelerance/xl2tpd
克隆/下载
osport.h 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
/*
* Layer Two Tunnelling Protocol Daemon
* Copyright (C) 1998 Adtran, Inc.
* Copyright (C) 2002 Jeff McAdams
*
* Mark Spencer
*
* This software is distributed under the terms
* of the GPL, which you should have received
* along with this source.
*
* OS Portability header file. try to map some
* "standard" routines into OS-specific routines.
*
*/
#ifndef _OSPORT_H_
#define _OSPORT_H_
#if defined(SOLARIS)
# define index(x, y) strchr(x, y)
# define bcopy(S1, S2, LEN) ((void)memmove(S2, S1, LEN))
# define bzero(S1, LEN) ((void)memset(S1, 0, LEN))
# define bcmp(S1,S2,LEN) ((memcmp(S2, S1, LEN)==0)?0:1)
/* pre 2.6 solaris didn't include random(), etc prototypes
* <stdlib.h> (as of 2.6) has the correct prototypes.
*/
# if SOLARIS < 260
# define random(X) ((int)rand(X))
# define srandom(X) ((void)srand(X))
# endif /* SOLARIS < 260 */
#endif /* defined(SOLARIS) */
#if !defined(LINUX)
/* Declare empty structure to make code portable and keep simple */
struct in_pktinfo {
};
#endif
#if defined __UCLIBC__ && !defined UCLIBC_SUSV3_LEGACY_MACROS
# define index(x, y) strchr(x, y)
# define bcopy(S1, S2, LEN) ((void)memmove(S2, S1, LEN))
# define bzero(S1, LEN) ((void)memset(S1, 0, LEN))
# define bcmp(S1,S2,LEN) ((memcmp(S2, S1, LEN)==0)?0:1)
#endif /* defined __UCLIBC__ && !defined UCLIBC_SUSV3_LEGACY_MACROS */
#endif /* _OSPORT_H_ */
C/C++
1
https://gitee.com/mirrors/xl2tpd.git
git@gitee.com:mirrors/xl2tpd.git
mirrors
xl2tpd
xl2tpd
master

搜索帮助