Introduce LOCALNAT and LOCALRAD defines so that the sources can stay

exactly the same in FreeBSD & OpenBSD despite libalias and libradius
being local to the ppp sources under OpenBSD.
This commit is contained in:
brian 2000-03-14 01:47:02 +00:00
parent b7053a7740
commit 428154656b
5 changed files with 22 additions and 13 deletions

View File

@ -47,12 +47,13 @@
#include <unistd.h> #include <unistd.h>
#ifndef NONAT #ifndef NONAT
#ifdef __FreeBSD__ #ifdef LOCALNAT
#include <alias.h>
#else
#include "alias.h" #include "alias.h"
#else
#include <alias.h>
#endif #endif
#endif #endif
#include "layer.h" #include "layer.h"
#include "defs.h" #include "defs.h"
#include "command.h" #include "command.h"

View File

@ -42,12 +42,13 @@
#include <unistd.h> #include <unistd.h>
#ifndef NONAT #ifndef NONAT
#ifdef __FreeBSD__ #ifdef LOCALNAT
#include <alias.h>
#else
#include "alias.h" #include "alias.h"
#else
#include <alias.h>
#endif #endif
#endif #endif
#include "layer.h" #include "layer.h"
#include "ua.h" #include "ua.h"
#include "defs.h" #include "defs.h"

View File

@ -43,12 +43,13 @@
#include <sys/stat.h> #include <sys/stat.h>
#ifndef NONAT #ifndef NONAT
#ifdef __FreeBSD__ #ifdef LOCALNAT
#include <alias.h>
#else
#include "alias.h" #include "alias.h"
#else
#include <alias.h>
#endif #endif
#endif #endif
#include "layer.h" #include "layer.h"
#include "probe.h" #include "probe.h"
#include "mbuf.h" #include "mbuf.h"

View File

@ -19,11 +19,12 @@
#include <string.h> #include <string.h>
#include <termios.h> #include <termios.h>
#ifdef __FreeBSD__ #ifdef LOCALNAT
#include <alias.h>
#else
#include "alias.h" #include "alias.h"
#else
#include <alias.h>
#endif #endif
#include "layer.h" #include "layer.h"
#include "proto.h" #include "proto.h"
#include "defs.h" #include "defs.h"

View File

@ -36,8 +36,13 @@
#include <sys/un.h> #include <sys/un.h>
#include <net/route.h> #include <net/route.h>
#include <errno.h> #ifdef LOCALRAD
#include "radlib.h"
#else
#include <radlib.h> #include <radlib.h>
#endif
#include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>