OSSP CVS Repository

ossp - Difference in ossp-pkg/sa/sa.c versions 1.29 and 1.30
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sa/sa.c 1.29 -> 1.30

--- sa.c 2001/10/10 15:40:00     1.29
+++ sa.c 2001/10/10 19:32:29     1.30
@@ -53,6 +53,24 @@
 /* include own API header */
 #include "sa.h"
 
+/* boolean values */
+#ifndef FALSE
+#define FALSE (0)
+#endif
+#ifndef TRUE
+#define TRUE  (!FALSE)
+#endif
+
+/* backward compatibility for AF_LOCAL */
+#if !defined(AF_LOCAL) && defined(AF_UNIX)
+#define AF_LOCAL AF_UNIX
+#endif
+
+/* backward compatibility for ssize_t */
+#if defined(HAVE_CONFIG_H) && !defined(HAVE_SSIZE_T)
+#define ssize_t long
+#endif
+
 /* system call structure declaration macros */
 #define SA_SC_DECLARE_0(rc_t, fn) \
     struct { \
@@ -180,23 +198,10 @@
     socklen_t        slBuf;            /* the length of "struct sockaddr_xx" */
 };
 
-/* boolean values */
-#ifndef FALSE
-#define FALSE (0)
-#endif
-#ifndef TRUE
-#define TRUE  (!FALSE)
-#endif
-
 /* handy struct timeval check */
 #define SA_TVISZERO(tv) \
     ((tv).tv_sec == 0 && (tv).tv_usec == 0)
 
-/* backward compatibility for AF_LOCAL */
-#if !defined(AF_LOCAL) && defined(AF_UNIX)
-#define AF_LOCAL AF_UNIX
-#endif
-
 /* convert Internet address from presentation to network format */
 static int sa_inet_pton(int family, const char *strptr, void *addrptr)
 {

CVSTrac 2.0.1