[telepathy-mission-control/telepathy-mission-control-5.2] mcd-misc.c: don't define macros used in glibc feature-test internals

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Sep 10 05:58:15 PDT 2009


These appear to have been used to get fsync and fdopen (for which the
documented glibc macros, either _XOPEN_SOURCE or the combination of
_BSD_SOURCE and _POSIX_SOURCE, should have been used instead).

Now that we no longer reimplement g_file_set_contents, neither should be
necessary.

As well as being better style, this might fix build failures on
Debian/kFreeBSD:

https://buildd.debian.org/fetch.cgi?pkg=telepathy-mission-control-5&arch=kfreebsd-i386&ver=5.2.2-1&stamp=1252349125&file=log&as=raw
https://buildd.debian.org/fetch.cgi?pkg=telepathy-mission-control-5&arch=kfreebsd-amd64&ver=5.2.2-1&stamp=1252349248&file=log&as=raw
---
 src/mcd-misc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/mcd-misc.c b/src/mcd-misc.c
index 53ce80d..7f7f41c 100644
--- a/src/mcd-misc.c
+++ b/src/mcd-misc.c
@@ -26,8 +26,6 @@
 
 #include "mcd-misc.h"
 #include <errno.h>
-#define __USE_POSIX
-#define __USE_BSD
 #include <glib/gstdio.h>
 #include <fcntl.h>
 #include <stdio.h>
-- 
1.5.6.5



More information about the telepathy-commits mailing list