--- quake2-r0.16.1.orig/src/linux/q_shlinux.c	2002-02-09 14:09:23.000000000 -0800
+++ quake2-r0.16.1/src/linux/q_shlinux.c	2007-08-26 11:14:50.000000000 -0700
@@ -17,6 +17,10 @@
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 */
+#ifndef _GNU_SOURCE
+    #define _GNU_SOURCE
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <errno.h>
