cgi-io: fix compilation against uClibc 11451/head
authorJo-Philipp Wich <jo@mein.io>
Thu, 27 Feb 2020 11:38:15 +0000 (12:38 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 27 Feb 2020 11:38:15 +0000 (12:38 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
net/cgi-io/Makefile
net/cgi-io/src/main.c

index 32498bc8e577229c6d949f4d5181d7050644af15..814a1b2f5402cabf00092454e03a32c1f8041605 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=cgi-io
-PKG_RELEASE:=18
+PKG_RELEASE:=19
 
 PKG_LICENSE:=GPL-2.0-or-later
 
index d45c67b85f345110a54a30e8d077abcbea559c8b..549121f94488173ba3f209929e93299452414f87 100644 (file)
 
 #include "multipart_parser.h"
 
+#ifndef O_TMPFILE
+#define O_TMPFILE      (020000000 | O_DIRECTORY)
+#endif
+
 #define READ_BLOCK 4096
 #define POST_LIMIT 131072