mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-16 19:00:47 +00:00
(bzero): New macro, to memset(); for FD_ZERO().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1178 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a12177d13a
commit
25e3d6354b
1 changed files with 4 additions and 1 deletions
|
@ -44,12 +44,15 @@
|
|||
#include <sys/param.h> /* for MAXHOSTNAMELEN */
|
||||
#include <arpa/inet.h> /* for inet_ntoa() */
|
||||
#include <string.h> /* for memset() */
|
||||
|
||||
#ifndef WIN32
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
|
||||
/* On some systems FD_ZERO is a macro that uses bzero().
|
||||
Just define it to use GCC's builtin memset(). */
|
||||
#define bzero(PTR, LEN) memset (PTR, 0, LEN)
|
||||
|
||||
static int debug_tcp_port = 0;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue