[gdm] Fix build problem on FreeBSD



commit 2d025255ab783208af98d848cca7b5e1bb4e44ef
Author: Ting-Wei Lan <lantw44 gmail com>
Date:   Mon Jan 20 18:15:35 2014 +0800

    Fix build problem on FreeBSD
    
     1. gdm-session-worker needs -lutil.
     2. #include <sys/types.h> is needed to get uid_t.
     3. #include <netinet/in.h> is needed to get several struct.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722594

 daemon/Makefile.am                 |    1 +
 daemon/gdm-session.h               |    1 +
 daemon/gdm-xdmcp-display-factory.c |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index 7eacbdc..2fcac8b 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -289,6 +289,7 @@ gdm_session_worker_LDADD =                  \
        $(SYSTEMD_LIBS)                         \
        $(JOURNALD_LIBS)                        \
        $(LIBSELINUX_LIBS)                      \
+       $(EXTRA_DAEMON_LIBS)                    \
        $(NULL)
 
 sbin_PROGRAMS =                        \
diff --git a/daemon/gdm-session.h b/daemon/gdm-session.h
index 8e6e4e3..9b17dc1 100644
--- a/daemon/gdm-session.h
+++ b/daemon/gdm-session.h
@@ -22,6 +22,7 @@
 #define __GDM_SESSION_H
 
 #include <glib-object.h>
+#include <sys/types.h>
 
 G_BEGIN_DECLS
 
diff --git a/daemon/gdm-xdmcp-display-factory.c b/daemon/gdm-xdmcp-display-factory.c
index b392879..69d18dc 100644
--- a/daemon/gdm-xdmcp-display-factory.c
+++ b/daemon/gdm-xdmcp-display-factory.c
@@ -35,6 +35,7 @@
 #include <netdb.h>
 #include <arpa/inet.h>
 #include <net/if.h>
+#include <netinet/in.h>
 #ifdef HAVE_SYS_SOCKIO_H
 #include <sys/sockio.h>
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]