The one provided by glibc simply includes <linux/ppp_defs.h>. This include is still needed on SunOS
Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
#include <stdlib.h>
#include <string.h>
+#if defined(SOL2)
+#include <net/ppp-comp.h>
+#else
+#include <linux/ppp-comp.h>
+#endif
#include "pppd.h"
#include "fsm.h"
#include "ccp.h"
-#include <net/ppp-comp.h>
#include "chap_ms.h"
#include "mppe.h"
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
+#if defined(SOL2)
+#include <net/ppp-comp.h>
+#else
+#include <linux/ppp-comp.h>
+#endif
#include "pppd.h"
#include "chap-new.h"
#include "fsm.h" /* Need to poke MPPE options */
#include "ccp.h"
-#include <net/ppp-comp.h>
#endif
/*
#include <openssl/hmac.h>
#include <openssl/rand.h>
#include <openssl/err.h>
-#include <net/ppp_defs.h>
#include "pppd.h"
#include "eap.h"
#include <stdarg.h>
#include <stdint.h>
#include <sys/types.h> /* for u_int32_t, if defined */
+#if defined(SOL2)
#include <net/ppp_defs.h>
+#else
+#include <linux/ppp_defs.h>
+#endif
#ifdef PPP_WITH_IPV6CP
#if defined(SOL2)
#include <string.h>
#include <time.h>
#include <netinet/in.h> /* htonl() */
-#include <net/ppp_defs.h>
#include "sha1.h"
static void
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
-#include <net/ppp_defs.h>
#include "ppp-comp.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
-#include <net/ppp_defs.h>
#include "ppp-comp.h"
#include "zlib.h"
#define DO_PREDICTOR_1 0
#define DO_PREDICTOR_2 0
+#if defined(SOL2)
+#include <net/ppp_defs.h>
+#else
+#include <linux/ppp_defs.h>
+#endif
+
/*
* Structure giving methods for compression/decompression.
*/
#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
-#include <net/ppp_defs.h>
+
#include "ppp-comp.h"
int hexmode;