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 Somers 2000-03-14 01:47:02 +00:00
parent f84f2c0057
commit 10e629b937
5 changed files with 22 additions and 13 deletions

View File

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

View File

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

View File

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

View File

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

View File

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