@@ -7,6 +7,10 @@
#ifndef _EGG_COMPAT_COMPAT_H
#define _EGG_COMPAT_COMPAT_H
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include "dirname.h"
#include "dn_expand.h"
#include "inet_ntop.h"
@@ -1,7 +1,9 @@
-#include "common.h"
+#include "dirname.h"
#include <errno.h>
#include <string.h>
#include <sys/param.h>
+#include "strlcpy.h"
char *
@@ -1,6 +1,10 @@
#ifndef _DIRNAME_H
#define _DIRNAME_H
#define dirname my_dirname
char *dirname(const char *);
@@ -3,8 +3,10 @@
*/
+#include "memcpy.h"
#include <sys/socket.h>
+#include <errno.h>
+#include <stdlib.h>
/*
* Define constants based on RFC 883, RFC 1034, RFC 1035
#ifndef _DN_EXPAND_H
#define _DN_EXPAND_H
int my_dn_expand(const unsigned char *, const unsigned char *, const unsigned char *, char *, int);
#endif /* !_DN_EXPAND_H */
@@ -5,8 +5,8 @@
+#include "sprintf.h"
#ifndef HAVE_INET_NTOP
@@ -7,7 +7,10 @@
#ifndef _EGG_COMPAT_INET_NTOP_H
#define _EGG_COMPAT_INET_NTOP_H
-#include "src/common.h"
#include <sys/types.h>
#include <netinet/in.h>
@@ -4,7 +4,6 @@
#include "memcpy.h"
#ifndef HAVE_MEMCPY
#ifndef _EGG_COMPAT_MEMCPY_H
#define _EGG_COMPAT_MEMCPY_H
@@ -3,15 +3,13 @@
*
-
#include "memset.h"
#ifndef HAVE_MEMSET
void *memset(void *dest, int c, size_t n)
{
while (n--)
- *((u_8bit_t *) dest)++ = c;
+ *((unsigned char *) dest)++ = c;
return dest;
}
#endif /* !HAVE_MEMSET */
#ifndef _EGG_COMPAT_MEMSET_H
#define _EGG_COMPAT_MEMSET_H
@@ -1,5 +1,6 @@
+#include "memutil.h"
#include "src/main.h"
#include <stdlib.h>
#ifndef _MEMUTIL_H
#define _MEMUTIL_H
//#undef str_redup
@@ -1,6 +1,5 @@
#include "snprintf.h"
#ifndef _EGG_COMPAT_SNPRINTF_H_
#define _EGG_COMPAT_SNPRINTF_H_
#include <stdio.h>
/* Check for broken snprintf versions */
#ifndef HAVE_STRCASECMP
#ifndef _EGG_COMPAT_STRCASECMP_H
#define _EGG_COMPAT_STRCASECMP_H
#include <ctype.h>
#include "strftime.h"
#ifndef HAVE_STRFTIME
#ifndef _EGG_COMPAT_STRFTIME_H_
#define _EGG_COMPAT_STRFTIME_H_
#include <time.h>
/* Use the system libraries version of strftime() if available. Otherwise
#ifndef _STRLCPY_H
#define _STRLCPY_H
//#undef strlcpy
#ifndef _STRSEP_H
#define _STRSEP_H
//#undef strsep
#define strsep my_strsep
#ifndef _TIMESPEC_H
#define _TIMESPEC_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif