ossp-pkg/l2/l2_ut_sa.h 1.19 -> 1.20
--- l2_ut_sa.h 2003/11/10 15:14:11 1.19
+++ l2_ut_sa.h 2004/03/26 17:14:48 1.20
@@ -31,18 +31,18 @@
#ifndef __SA_H__
#define __SA_H__
-#define SA_PREFIX l2_util_
-
/* system definitions of "size_t", "socklen_t", "struct sockaddr *" */
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
/* include optional Autoconf header */
+#define SA_PREFIX l2_util_
#include "l2_config.h"
+
/* fallback for POSIX socklen_t */
-#if !defined(HAVE_SOCKLEN_T)
+#if defined(HAVE_CONFIG_H) && !defined(HAVE_SOCKLEN_T)
typedef int socklen_t;
#endif
@@ -118,6 +118,8 @@
SA_ERR_EOF, /* End Of Communication */
SA_ERR_TMT, /* Communication Timeout */
SA_ERR_SYS, /* Operating System Error */
+ SA_ERR_NET, /* Networking Error */
+ SA_ERR_FMT, /* Formatting Error */
SA_ERR_IMP, /* Implementation Not Available */
SA_ERR_INT /* Internal Error */
} sa_rc_t;
|
|