diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-05-07 15:16:35 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-05-07 16:04:54 +0100 |
commit | 508cf75c238574f0ccbaaa26316d4ba5877ae97e (patch) | |
tree | 715d58136e15c3b820f51fdcd3664a3e0e5cc64d /lib/gibber/gibber-unix-transport.c | |
parent | 23079bc4b84054734ccac5c1a2a84d662175319c (diff) | |
download | telepathy-salut-508cf75c238574f0ccbaaa26316d4ba5877ae97e.tar.gz |
GibberUnixTransport: don't build if not running on Unix
Diffstat (limited to 'lib/gibber/gibber-unix-transport.c')
-rw-r--r-- | lib/gibber/gibber-unix-transport.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/gibber/gibber-unix-transport.c b/lib/gibber/gibber-unix-transport.c index b100c630..3be56bac 100644 --- a/lib/gibber/gibber-unix-transport.c +++ b/lib/gibber/gibber-unix-transport.c @@ -22,6 +22,10 @@ /* needed for struct ucred */ #define _GNU_SOURCE +#include <glib.h> + +#ifdef G_OS_UNIX + /* If you claim to be Unix but you don't have these headers, you may have * already lost. */ #include <stdio.h> @@ -405,4 +409,6 @@ gibber_unix_transport_read (GibberFdTransport *transport, return gibber_fd_transport_read (transport, channel, error); } -#endif +#endif /* OSs where we have no implementation of credentials */ + +#endif /* G_OS_UNIX */ |