summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2014-01-20 18:15:35 +0800
committerRyan Lortie <desrt@desrt.ca>2014-02-13 07:12:02 -0500
commit2d025255ab783208af98d848cca7b5e1bb4e44ef (patch)
tree41d3ee4598779529b968be89cbda599d8607b638
parente2d05cb7f952d3504362cd32f61bcee2a22ccb35 (diff)
downloadgdm-2d025255ab783208af98d848cca7b5e1bb4e44ef.tar.gz
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
-rw-r--r--daemon/Makefile.am1
-rw-r--r--daemon/gdm-session.h1
-rw-r--r--daemon/gdm-xdmcp-display-factory.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index 7eacbdc8..2fcac8be 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 8e6e4e36..9b17dc12 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 b3928794..69d18dca 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