--- packages/gscope/src/auto_gen.c.bak	2017-08-19 00:44:22.000000000 +0200
+++ packages/gscope/src/auto_gen.c	2017-08-20 18:23:02.247830491 +0200
@@ -3,6 +3,10 @@
 #include "config.h"
 #endif
 
+#ifndef ACCESSPERMS
+# define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #include <dirent.h>
