From 03ab4b3c76e220c4da3ea062851d28a8ab883cee 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 --- Makefile | 2 +- src/main.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 32498bc..814a1b2 100644 --- a/Makefile +++ b/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/src/main.c b/src/main.c index d45c67b..549121f 100644 --- a/src/main.c +++ b/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