提交 930ab4a68691a44d09517f90cce288cb6e7a4699

作者 LJH 李佳桓
1 个父辈 d25c5457

add

正在显示 1 个修改的文件 包含 51 行增加0 行删除
  1 +/*
  2 + * Copyright 2008 Stephen Liu
  3 + * For license terms, see the file COPYING along with this library.
  4 + */
  5 +
  6 +#ifndef __spporting_hpp__
  7 +#define __spporting_hpp__
  8 +
  9 +#ifdef WIN32
  10 +
  11 +#include "spwin32port.hpp"
  12 +
  13 +#else
  14 +
  15 +#include <unistd.h>
  16 +#include <sys/types.h>
  17 +#include <sys/uio.h>
  18 +#include <sys/un.h>
  19 +#include <sys/socket.h>
  20 +#include <netinet/in.h>
  21 +#include <arpa/inet.h>
  22 +#include <netinet/tcp.h>
  23 +#include <syslog.h>
  24 +#include <unistd.h>
  25 +#include <sys/time.h>
  26 +#include <signal.h>
  27 +#include <sys/resource.h>
  28 +
  29 +#define sp_syslog syslog
  30 +#define sp_openlog openlog
  31 +#define sp_closelog closelog
  32 +
  33 +#define sp_inet_aton inet_aton
  34 +#define sp_close close
  35 +#define sp_writev writev
  36 +#define sp_socketpair socketpair
  37 +#define sp_gettimeofday gettimeofday
  38 +
  39 +inline int sp_initsock()
  40 +{
  41 + return 0;
  42 +}
  43 +
  44 +#ifndef LOG_PERROR
  45 +#define LOG_PERROR 0
  46 +#endif
  47 +
  48 +#endif
  49 +
  50 +#endif
  51 +
注册登录 后发表评论