From 3ca61bba76615852b3d8a7ee2bcc0fd86acf845e Mon Sep 17 00:00:00 2001 From: Bernhard Walle Date: Sun, 17 Dec 2006 19:44:57 +0000 Subject: [PATCH] panel-plugin/net.{c,h}, panel-plugin/os.h: - added code for DragonFly BSD, thanks to Bob Bagwill (fixed #1456) (Old svn revision: 2247) --- panel-plugin/net.c | 2 +- panel-plugin/net.h | 2 +- panel-plugin/os.h | 364 ++++++++++++++++++++++++--------------------- 3 files changed, 196 insertions(+), 172 deletions(-) diff --git a/panel-plugin/net.c b/panel-plugin/net.c index e31b423..703c693 100644 --- a/panel-plugin/net.c +++ b/panel-plugin/net.c @@ -46,7 +46,7 @@ #elif __APPLE__ # include "src/macos.h" # include "src/macos.c" -#elif __FreeBSD__ +#elif __FreeBSD__ || __DragonFly__ # include "wormulon/freebsd.h" # include "wormulon/freebsd.c" #elif __linux__ diff --git a/panel-plugin/net.h b/panel-plugin/net.h index bed7a80..7901be4 100644 --- a/panel-plugin/net.h +++ b/panel-plugin/net.h @@ -62,7 +62,7 @@ typedef struct #ifdef __HPUX__ int wait_pcks_counter; nmapi_logstat* if_ptr; -#elif __FreeBSD__ +#elif __FreeBSD__ || __DragonFly__ int watchif; int dev_opened; #elif __NetBSD__ diff --git a/panel-plugin/os.h b/panel-plugin/os.h index 67b6b05..0d00922 100644 --- a/panel-plugin/os.h +++ b/panel-plugin/os.h @@ -19,186 +19,210 @@ #define _OS_H #if defined (__sun__) -#define __Solaris__ 1 +# define __Solaris__ 1 #endif #ifdef __HPUX__ /* H P U X */ -#define _XOPEN_SOURCE_EXTENDED -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +# define _XOPEN_SOURCE_EXTENDED +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include #elif __APPLE__ /* Mac OS X */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +#elif __DragonFly__ /* D R A G O N F L Y */ +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include #elif __FreeBSD__ /* F R E E B S D */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include #elif __NetBSD__ /* N E T B S D */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include #elif __OpenBSD__ || __MicroBSD__ /* O P E N B S D */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include #elif __linux__ /* L I N U X */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include #elif __Solaris__ /* S O L A R I S */ -#include -#define _WIDEC_H -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +# include +# define _WIDEC_H +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include #else -#error "OS not supported" +# error "OS not supported" #endif #endif