Commit 624a3d1b authored by Pekka Pessi's avatar Pekka Pessi

Defining missing error codes in <su_errno.h>.

darcs-hash:20060125133028-65a35-b745d6b18396cd3a7e9718f6167a33a5024c964a.gz
parent 58b584c9
......@@ -99,13 +99,6 @@ union msg_mime_u
#include <msg_parser.h>
#include <msg_mime_protos.h>
#if defined(__APPLE_CC__)
/* Oops, no EBADMSG found */
#ifndef EBADMSG
#define EBADMSG EFAULT
#endif
#endif
/** Define a header class for headers without any extra data to copy */
#define MSG_HEADER_CLASS_G(c, l, s, kind) \
MSG_HEADER_CLASS(msg_, c, l, s, g_common, kind, msg_generic, msg_generic)
......
......@@ -37,13 +37,6 @@
#include <string.h>
#include <errno.h>
#if defined(__APPLE_CC__)
/* for EPROTO */
#ifndef EPROTO
#define EPROTO EPROTOTYPE
#endif
#endif
#include <assert.h>
#include <su_tag_class.h>
......
......@@ -52,12 +52,6 @@
#include <su.h>
#include <su_localinfo.h>
#if defined(__APPLE_CC__)
#ifndef SOL_TCP
#define SOL_TCP IPPROTO_TCP
#endif
#endif
#include <openssl/opensslv.h>
/** STUN log. */
......
......@@ -57,6 +57,18 @@ int su_seterrno(int);
#define su_seterrno(n) ((errno = (n)), -1)
#endif
#if defined(__APPLE_CC__)
#ifndef EBADMSG
#define EBADMSG EFAULT
#endif
#ifndef EPROTO
#define EPROTO EPROTOTYPE
#endif
#ifndef EBADMSG
#define EBADMSG EFAULT
#endif
#endif
SOFIA_END_DECLS
#endif
......@@ -34,18 +34,13 @@
#include "config.h"
#include <su_memmem.h>
#include <sys/types.h>
#include <stddef.h>
#include <limits.h>
#include <ctype.h>
#if defined (__APPLE_CC__)
#include <stdlib.h>
#else
#include <malloc.h>
#endif
#include <su_memmem.h>
#ifndef TORTURELOG
#define TORTURELOG(x) (void)0
......
......@@ -101,14 +101,9 @@ typedef struct _tls_t tls_t; /* dummy */
#include <sigcomp.h>
#endif
#if defined(__APPLE_CC__)
#ifndef EBADMSG
#define EBADMSG EFAULT
#endif
#ifndef SOL_TCP
#define SOL_TCP IPPROTO_TCP
#endif
#endif
#ifndef IPPROTO_SCTP
#define IPPROTO_SCTP (132)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment