OSSP CVS Repository

ossp - Difference in ossp-pkg/sa/sa.h versions 1.14 and 1.15
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sa/sa.h 1.14 -> 1.15

--- sa.h 2001/10/08 14:47:30     1.14
+++ sa.h 2001/10/08 15:01:26     1.15
@@ -36,6 +36,16 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 
+/* include optional Autoconf header */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+/* fallback for POSIX socklen_t */
+#if defined(HAVE_CONFIG_H) && !defined(HAVE_SOCKLEN_T)
+#define socklen_t int
+#endif
+
 /* embedding support */
 #ifdef SA_PREFIX
 #if defined(__STDC__) || defined(__cplusplus)
@@ -169,5 +179,10 @@
 sa_rc_t sa_recv         (sa_t *sa, char *buf, size_t buflen, size_t *bufdone, sa_addr_t **raddr);
 sa_rc_t sa_send         (sa_t *sa, const char *buf, size_t buflen, size_t *bufdone, sa_addr_t *raddr);
 
+/* cleanup */
+#if defined(HAVE_CONFIG_H) && !defined(HAVE_SOCKLEN_T)
+#undef socklen_t
+#endif
+
 #endif /* __SA_H__ */
 

CVSTrac 2.0.1