diff options
Diffstat (limited to 'sys/dev/aic7xxx')
-rw-r--r-- | sys/dev/aic7xxx/aicasm/aicasm.c | 2 | ||||
-rw-r--r-- | sys/dev/aic7xxx/aicasm/aicasm.h | 4 | ||||
-rw-r--r-- | sys/dev/aic7xxx/aicasm/aicasm_gram.y | 5 | ||||
-rw-r--r-- | sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y | 5 | ||||
-rw-r--r-- | sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l | 4 | ||||
-rw-r--r-- | sys/dev/aic7xxx/aicasm/aicasm_scan.l | 4 | ||||
-rw-r--r-- | sys/dev/aic7xxx/aicasm/aicasm_symbol.c | 8 | ||||
-rw-r--r-- | sys/dev/aic7xxx/aicasm/aicasm_symbol.h | 4 |
8 files changed, 5 insertions, 31 deletions
diff --git a/sys/dev/aic7xxx/aicasm/aicasm.c b/sys/dev/aic7xxx/aicasm/aicasm.c index 6c88f90..1b88ba0 100644 --- a/sys/dev/aic7xxx/aicasm/aicasm.c +++ b/sys/dev/aic7xxx/aicasm/aicasm.c @@ -53,7 +53,7 @@ #include <sysexits.h> #include <unistd.h> -#if linux +#if defined(__linux__) || defined(__GLIBC__) #include <endian.h> #else #include <machine/endian.h> diff --git a/sys/dev/aic7xxx/aicasm/aicasm.h b/sys/dev/aic7xxx/aicasm/aicasm.h index 440cb49..0cc1c2b 100644 --- a/sys/dev/aic7xxx/aicasm/aicasm.h +++ b/sys/dev/aic7xxx/aicasm/aicasm.h @@ -42,11 +42,7 @@ * $FreeBSD$ */ -#ifdef __linux__ -#include "../queue.h" -#else #include <sys/queue.h> -#endif #ifndef TRUE #define TRUE 1 diff --git a/sys/dev/aic7xxx/aicasm/aicasm_gram.y b/sys/dev/aic7xxx/aicasm/aicasm_gram.y index d50d2b9..e4ee307 100644 --- a/sys/dev/aic7xxx/aicasm/aicasm_gram.y +++ b/sys/dev/aic7xxx/aicasm/aicasm_gram.y @@ -51,12 +51,7 @@ #include <stdlib.h> #include <string.h> #include <sysexits.h> - -#ifdef __linux__ -#include "../queue.h" -#else #include <sys/queue.h> -#endif #include "aicasm.h" #include "aicasm_symbol.h" diff --git a/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y b/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y index 95e20f1..923cd5d 100644 --- a/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y +++ b/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y @@ -51,12 +51,7 @@ #include <stdlib.h> #include <string.h> #include <sysexits.h> - -#ifdef __linux__ -#include "../queue.h" -#else #include <sys/queue.h> -#endif #include "aicasm.h" #include "aicasm_symbol.h" diff --git a/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l b/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l index ad06507..ac14c12 100644 --- a/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l +++ b/sys/dev/aic7xxx/aicasm/aicasm_macro_scan.l @@ -51,11 +51,7 @@ #include <stdio.h> #include <string.h> #include <sysexits.h> -#ifdef __linux__ -#include "../queue.h" -#else #include <sys/queue.h> -#endif #include "aicasm.h" #include "aicasm_symbol.h" diff --git a/sys/dev/aic7xxx/aicasm/aicasm_scan.l b/sys/dev/aic7xxx/aicasm/aicasm_scan.l index 2821862..acc74a4 100644 --- a/sys/dev/aic7xxx/aicasm/aicasm_scan.l +++ b/sys/dev/aic7xxx/aicasm/aicasm_scan.l @@ -51,11 +51,7 @@ #include <stdio.h> #include <string.h> #include <sysexits.h> -#ifdef __linux__ -#include "../queue.h" -#else #include <sys/queue.h> -#endif #include "aicasm.h" #include "aicasm_symbol.h" diff --git a/sys/dev/aic7xxx/aicasm/aicasm_symbol.c b/sys/dev/aic7xxx/aicasm/aicasm_symbol.c index 2e5d5c4..53a2c5d 100644 --- a/sys/dev/aic7xxx/aicasm/aicasm_symbol.c +++ b/sys/dev/aic7xxx/aicasm/aicasm_symbol.c @@ -43,11 +43,11 @@ */ #include <sys/types.h> - -#ifdef __linux__ -#include "aicdb.h" -#else +#include <sys/param.h> +#ifdef BSD #include <db.h> +#else +#include <db_185.h> #endif #include <ctype.h> #include <fcntl.h> diff --git a/sys/dev/aic7xxx/aicasm/aicasm_symbol.h b/sys/dev/aic7xxx/aicasm/aicasm_symbol.h index 7cdace8..3242152 100644 --- a/sys/dev/aic7xxx/aicasm/aicasm_symbol.h +++ b/sys/dev/aic7xxx/aicasm/aicasm_symbol.h @@ -42,11 +42,7 @@ * $FreeBSD$ */ -#ifdef __linux__ -#include "../queue.h" -#else #include <sys/queue.h> -#endif typedef enum { UNINITIALIZED, |