hi there, kubuntu-gcc-4.0.2 compile fix
- From: Engin AYDOGAN <engin bzzzt biz>
- To: networkmanager-list gnome org
- Subject: hi there, kubuntu-gcc-4.0.2 compile fix
- Date: Mon, 24 Oct 2005 02:49:09 +0300
Hi there,
I had started a similar project a few weeks ago, when I didn't know about
NetworkManager. After people told me about this project I liked to give it a
try and use it via DBUS interface to built the KDE system tray app.
Anyway, I checked out from CVS but compilation failed. Attached patch makes
the "gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)" happy.
The patch also includes a #define. Apparently the wireless-tools package
kubuntu provides somehow not compatiple with the one you guys use.
--
Best regards,
Engin AYDOGAN
? kubuntu.patch
? dispatcher-daemon/.deps
? dispatcher-daemon/.libs
? gnome/applet/.deps
? gnome/applet/.libs
? gnome/libnm_glib/.deps
? gnome/libnm_glib/.libs
? gnome/libnm_glib/libnm_glib.la
? gnome/libnm_glib/libnm_glib_la-libnm_glib.lo
? gnome/vpn-properties/.deps
? gnome/vpn-properties/.libs
? src/.deps
? src/.libs
? src/backends/.deps
? src/backends/.libs
? src/backends/libnmbackend.la
? src/backends/libnmbackend_la-NetworkManagerDebian.lo
? src/backends/libnmbackend_la-interface_parser.lo
? src/dhcp-manager/.deps
? src/dhcp-manager/.libs
? src/dhcp-manager/libdhcp-manager.la
? src/dhcp-manager/libdhcp_manager_la-nm-dhcp-manager.lo
? src/named-manager/.deps
? src/named-manager/.libs
? src/named-manager/libnamed-manager.la
? src/named-manager/libnamed_manager_la-nm-named-manager.lo
? src/vpn-manager/.deps
? src/vpn-manager/.libs
? src/vpn-manager/libvpn-manager.la
? src/vpn-manager/libvpn_manager_la-nm-dbus-vpn.lo
? src/vpn-manager/libvpn_manager_la-nm-vpn-act-request.lo
? src/vpn-manager/libvpn_manager_la-nm-vpn-connection.lo
? src/vpn-manager/libvpn_manager_la-nm-vpn-manager.lo
? src/vpn-manager/libvpn_manager_la-nm-vpn-service.lo
? test/.deps
? test/.libs
? utils/.deps
? utils/.libs
? utils/libnmutils.la
? utils/libnmutils_la-nm-utils.lo
Index: src/NetworkManagerDevice.c
===================================================================
RCS file: /cvs/gnome/NetworkManager/src/NetworkManagerDevice.c,v
retrieving revision 1.178
diff -u -r1.178 NetworkManagerDevice.c
--- src/NetworkManagerDevice.c 20 Oct 2005 20:41:51 -0000 1.178
+++ src/NetworkManagerDevice.c 23 Oct 2005 23:42:44 -0000
@@ -47,6 +47,10 @@
#include "nm-activation-request.h"
#include "nm-utils.h"
+#ifndef IW_EV_POINT_OFF
+#define IW_EV_POINT_OFF (((char *) &(((struct iw_point *) NULL)->length)) - \
+ (char *) NULL)
+#endif
/* Local static prototypes */
static gpointer nm_device_worker (gpointer user_data);
static gboolean nm_device_wireless_scan (gpointer user_data);
Index: src/backends/interface_parser.h
===================================================================
RCS file: /cvs/gnome/NetworkManager/src/backends/interface_parser.h,v
retrieving revision 1.2
diff -u -r1.2 interface_parser.h
--- src/backends/interface_parser.h 16 Aug 2005 17:16:40 -0000 1.2
+++ src/backends/interface_parser.h 23 Oct 2005 23:42:45 -0000
@@ -40,13 +40,17 @@
struct _if_block *next;
} if_block;
-void ifparser_init();
-void ifparser_destroy();
+void ifparser_init( void );
+void ifparser_destroy( void );
const char* ifparser_interfaces();
if_block *ifparser_getif(const char* iface);
-if_block *ifparser_getfirst();
+if_block *ifparser_getfirst( void );
const char *ifparser_getkey(if_block* iface, const char *key);
+void add_block(const char *type, const char* name);
+void add_data(const char *key,const char *data);
+void _destroy_data(if_data *ifd);
+void _destroy_block(if_block* ifb);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]