Back to index

im-sdk  12.3.91
udclient.h
Go to the documentation of this file.
00001 #ifndef __UDCLIENT_H__
00002 #define __UDCLIENT_H__
00003 
00004 /* Posix.1g renames "Unix domain" as "local IPC".
00005    But not all systems define AF_LOCAL and AF_LOCAL.  */
00006 #ifndef       AF_LOCAL
00007 #define AF_LOCAL     AF_UNIX
00008 #endif
00009 #ifndef       PF_LOCAL
00010 #define PF_LOCAL     PF_UNIX
00011 #endif
00012 /* Posix.1g defines SHUT_* constants. 
00013    But not all systems define SHUT_* constants. */
00014 #ifndef SHUT_WR
00015 #define SHUT_WR (1)
00016 #endif
00017 
00018 #if defined(USE_POLL) & !defined(INFTIM)
00019 #define INFTIM (-1)
00020 #endif
00021 
00022 #define   max(a,b)        ((a) > (b) ? (a) : (b))
00023 
00024 #endif