]> Zhao Yanbai Git Server - minix.git/commitdiff
Added PF_UNIX and PF_INET to make porting easier.
authorPhilip Homburg <philip@cs.vu.nl>
Mon, 17 Sep 2007 11:35:44 +0000 (11:35 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Mon, 17 Sep 2007 11:35:44 +0000 (11:35 +0000)
include/sys/socket.h

index 3551607624c67eaeedebbaa8884943e5bc07381e..c51938e9255a30d51d6278bf04ae1bb22260eedc 100644 (file)
@@ -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 */