[Xfce4-commits] <xfce4-netload-plugin:master> Add support for GNU/kFreeBSD

Florian Rivoal noreply at xfce.org
Thu Oct 14 17:30:02 CEST 2010


Updating branch refs/heads/master
         to cd6830349daa413d2924e11829cc628b8aa9baba (commit)
       from 3d15b6fb40900b043dc3863d3ad5571029e45c3d (commit)

commit cd6830349daa413d2924e11829cc628b8aa9baba
Author: Florian Rivoal <frivoal at xfce.org>
Date:   Wed Oct 13 09:12:55 2010 +0900

    Add support for GNU/kFreeBSD
    
    Change the ifdefery to use existing code to support GNU/kFreeBSD.
    
    Fixes bug 3043.

 README             |    1 +
 panel-plugin/net.c |    2 +-
 panel-plugin/net.h |    2 +-
 panel-plugin/os.h  |    2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/README b/README
index 38a8780..7357e2a 100644
--- a/README
+++ b/README
@@ -10,6 +10,7 @@ Following operating systems are supported:
  * Sun Solaris
  * HP_UX
  * MacOS X
+ * GNU/kFreeBSD
 
 I have only Linux installed so I can test only on Linux. If you encounter any
 problems on other operating systems (or on Linux, of course) feel free to send
diff --git a/panel-plugin/net.c b/panel-plugin/net.c
index 56c2d46..ea5b454 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__ || __DragonFly__
+#elif __FreeBSD__ || __DragonFly__ || __FreeBSD_kernel__
 # include "wormulon/freebsd.h"
 # include "wormulon/freebsd.c"
 #elif __linux__
diff --git a/panel-plugin/net.h b/panel-plugin/net.h
index 7ce4e98..31d93bc 100644
--- a/panel-plugin/net.h
+++ b/panel-plugin/net.h
@@ -65,7 +65,7 @@ typedef struct
 #ifdef __HPUX__
     int             wait_pcks_counter;
     nmapi_logstat*  if_ptr;
-#elif __FreeBSD__ || __DragonFly__
+#elif __FreeBSD__ || __DragonFly__ || __FreeBSD_kernel__
     int             watchif;
     int             dev_opened;
 #elif __NetBSD__
diff --git a/panel-plugin/os.h b/panel-plugin/os.h
index 0d00922..3b3b481 100644
--- a/panel-plugin/os.h
+++ b/panel-plugin/os.h
@@ -96,7 +96,7 @@
 #  include <arpa/inet.h>
 #  include <net/ppp_layer/ppp_defs.h>
 #  include <net/ppp/if_ppp.h>
-#elif __FreeBSD__           /* F R E E B S D */
+#elif __FreeBSD__ || __FreeBSD_kernel__           /* F R E E B S D */
 #  include <stdio.h>
 #  include <stdlib.h>
 #  include <stdarg.h>



More information about the Xfce4-commits mailing list