diff -ruN telepathy-idle-0.1.2.orig/src/idle-connection.c telepathy-idle-0.1.2/src/idle-connection.c --- telepathy-idle-0.1.2.orig/src/idle-connection.c 2007-09-25 12:25:58.000000000 -0700 +++ telepathy-idle-0.1.2/src/idle-connection.c 2009-05-27 03:45:00.000000000 -0700 @@ -40,6 +40,7 @@ /* strnlen */ #define __USE_GNU +#define __USE_XOPEN2K8 #include #include diff -ruN telepathy-idle-0.1.2.orig/src/idle-parser.c telepathy-idle-0.1.2/src/idle-parser.c --- telepathy-idle-0.1.2.orig/src/idle-parser.c 2007-09-25 11:46:25.000000000 -0700 +++ telepathy-idle-0.1.2/src/idle-parser.c 2009-05-27 03:45:33.000000000 -0700 @@ -27,8 +27,10 @@ #include #define __USE_GNU +#define __USE_XOPEN2K8 #include #undef __USE_GNU +#undef __USE_XOPEN2K8 #include #define IDLE_DEBUG_FLAG IDLE_DEBUG_PARSER