--- ./libraries/liblutil/getpeereid.c	2008-02-12 00:24:13.000000000 +0100
+++ ./libraries/liblutil/getpeereid.c	2008-06-12 12:55:34.000000000 +0200
@@ -14,6 +14,8 @@
  * <http://www.OpenLDAP.org/license.html>.
  */
 
+#define _GNU_SOURCE
+
 #include "portable.h"
 
 #ifndef HAVE_GETPEEREID