]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/lcp.c
extra includes for linux
[ppp.git] / pppd / lcp.c
index cd0f6f85eb52c61b0c20c15d6af3b052b8ecd44e..406053e52f91e6a752480f860a0ae2000f25675e 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: lcp.c,v 1.5 1994/05/24 11:23:13 paulus Exp $";
+static char rcsid[] = "$Id: lcp.c,v 1.7 1994/05/27 01:01:49 paulus Exp $";
 #endif
 
 /*
@@ -26,18 +26,19 @@ static char rcsid[] = "$Id: lcp.c,v 1.5 1994/05/24 11:23:13 paulus Exp $";
  */
 
 #include <stdio.h>
+#include <string.h>
 #include <syslog.h>
 #include <assert.h>
 #include <sys/ioctl.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/time.h>
-
-#include <net/if.h>
-#include <net/if_ppp.h>
 #include <netinet/in.h>
 
-#include <string.h>
+#ifdef _linux_         /* Needs ppp ioctls */
+#include <net/if.h>
+#include <linux/ppp.h>
+#endif
 
 #include "pppd.h"
 #include "ppp.h"