diff options
author | Dan Winship <danw@gnome.org> | 2010-11-11 09:57:25 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-12-12 15:20:22 +0100 |
commit | b377e69685c99150cf7661e1aa77d60934e00521 (patch) | |
tree | 6514da04da1dbf13ff01956fdb739296414dd8ee /gio/gunixconnection.c | |
parent | 9e90575502e663e5adde201f214c811df08bdf29 (diff) | |
download | glib-b377e69685c99150cf7661e1aa77d60934e00521.tar.gz |
Add gnetworking.h
Install a public "gnetworking.h" header that can be used to include
the relevant OS-dependent networking headers. This does not really
abstract away unix-vs-windows however; error codes, in particular,
are incompatible.
gnetworkingprivate.h now contains just a few internal URI-related
functions
Also add a g_networking_init() function to gnetworking.h, which can be
used to explicitly initialize OS-level networking, rather than having
that happen as a side-effect of registering GInetAddress.
https://bugzilla.gnome.org/show_bug.cgi?id=623187
Diffstat (limited to 'gio/gunixconnection.c')
-rw-r--r-- | gio/gunixconnection.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gio/gunixconnection.c b/gio/gunixconnection.c index d5d8ec0d7..8a0968e44 100644 --- a/gio/gunixconnection.c +++ b/gio/gunixconnection.c @@ -39,16 +39,12 @@ #include <gio/gsocketcontrolmessage.h> #include <gio/gunixfdmessage.h> +#include <gio/gnetworking.h> #include <gio/gsocket.h> -#include <unistd.h> -#ifdef __linux__ -/* for getsockopt() and setsockopt() */ -#include <sys/types.h> /* See NOTES */ -#include <sys/socket.h> #include <errno.h> #include <string.h> -#endif +#include <unistd.h> G_DEFINE_TYPE_WITH_CODE (GUnixConnection, g_unix_connection, |