util/compatfd.c: upstream implementation.

Change-Id: I1b4eceddfe65d1112e007f9a440eeb2349e7d396
diff --git a/android-configure.sh b/android-configure.sh
index 83bf7c0..ecfe86a 100755
--- a/android-configure.sh
+++ b/android-configure.sh
@@ -723,6 +723,12 @@
     echo "#define MAP_ANONYMOUS    MAP_ANON" >> $config_h
 fi
 
+case "$TARGET_OS" in
+    linux-*)
+        echo "#define CONFIG_SIGNALFD       1" >> $config_h
+        ;;
+esac
+
 echo "#define CONFIG_ANDROID       1" >> $config_h
 
 if [ "$GLES_SUPPORT" = "yes" ]; then