From b74b3315a3a626d53397ebc82f6a09c8e5f0e281 Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Mon, 17 Sep 2007 11:35:44 +0000 Subject: [PATCH] Added PF_UNIX and PF_INET to make porting easier. --- include/sys/socket.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/sys/socket.h b/include/sys/socket.h index 355160762..c51938e92 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -78,4 +78,10 @@ _PROTOTYPE( ssize_t sendto, (int _socket, const void *_message, _PROTOTYPE( int shutdown, (int _socket, int _how) ); _PROTOTYPE( int socket, (int _domain, int _type, int _protocol) ); +/* The following constants are often used in applications, but are not defined + * by POSIX. + */ +#define PF_UNIX AF_UNIX +#define PF_INET AF_INET + #endif /* SYS_SOCKET_H */