Update from stable branch.
diff --git a/apps/apps.c b/apps/apps.c
index b04bfbd..b992a04 100644
--- a/apps/apps.c
+++ b/apps/apps.c
@@ -109,10 +109,12 @@
  *
  */
 
+#ifndef _POSIX_C_SOURCE
 #define _POSIX_C_SOURCE 2	/* On VMS, you need to define this to get
 				   the declaration of fileno().  The value
 				   2 is to make sure no function defined
 				   in POSIX-2 is left undefined. */
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>