mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
Fix G_OS #ifdefs in gbusserver.c
G_OS #ifdefs are only available once glibconfig.h has been evaluated ; that is, after including glib headers. Move this block down so it gets correctly evaluated.
This commit is contained in:
@@ -25,12 +25,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#ifdef G_OS_UNIX
|
|
||||||
#include <unistd.h>
|
|
||||||
#endif
|
|
||||||
#ifdef G_OS_WIN32
|
|
||||||
#include <io.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "giotypes.h"
|
#include "giotypes.h"
|
||||||
#include "gioerror.h"
|
#include "gioerror.h"
|
||||||
@@ -51,6 +45,13 @@
|
|||||||
#include "ginputstream.h"
|
#include "ginputstream.h"
|
||||||
#include "giostream.h"
|
#include "giostream.h"
|
||||||
|
|
||||||
|
#ifdef G_OS_UNIX
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
#include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef G_OS_UNIX
|
#ifdef G_OS_UNIX
|
||||||
#include "gunixsocketaddress.h"
|
#include "gunixsocketaddress.h"
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user