From ed965cf16fd9ee6a798322b7b73f8c509295f19d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 27 Feb 2020 12:38:15 +0100 Subject: [PATCH] cgi-io: fix compilation against uClibc Signed-off-by: Jo-Philipp Wich --- net/cgi-io/Makefile | 2 +- net/cgi-io/src/main.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/net/cgi-io/Makefile b/net/cgi-io/Makefile index 32498bc8e5..814a1b2f54 100644 --- a/net/cgi-io/Makefile +++ b/net/cgi-io/Makefile @@ -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 diff --git a/net/cgi-io/src/main.c b/net/cgi-io/src/main.c index d45c67b85f..549121f944 100644 --- a/net/cgi-io/src/main.c +++ b/net/cgi-io/src/main.c @@ -37,6 +37,10 @@ #include "multipart_parser.h" +#ifndef O_TMPFILE +#define O_TMPFILE (020000000 | O_DIRECTORY) +#endif + #define READ_BLOCK 4096 #define POST_LIMIT 131072 -- 2.30.2