GNOME Bugzilla – Bug 760447
nm-dns-manager.c: fails to compile without libsoup.h
Last modified: 2016-01-11 11:56:15 UTC
Created attachment 318713 [details] [review] nm-dns-manager.c include gio.h patch Error: When configured with --without-libsoup, nm-dns-manager.c compilation fails with: dns-manager/nm-dns-manager.c:438:25: error: 'G_IO_ERROR' undeclared (first use in this function) g_set_error (error, G_IO_ERROR, g_io_error_from_errno (errnosv), Cause: G_IO_ERROR is declared in gio.h, which is included with the libsoup headers; so unavailable when configured with --without-libsoup (#if WITH_LIBSOUP). Solution: In nm-dns-manager.c, following the #if WITH_LIBSOUP, include: #else #include <gio/gio.h> Notes: Issue didn't exist in 0.9.8.10 because G_IO_ERROR wasn't used.
fixed in nm-1-0: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=49107121ab03be766f3f930333cc4b362d40c7ea (master is not affected, because nm-glib.h always includes gio.h)