--- ./logrotate.c.orig	2021-05-19 10:38:30 +0000
+++ ./logrotate.c	2021-05-19 10:41:20 +0000
@@ -61,6 +61,15 @@
 extern int asprintf(char **str, const char *fmt, ...);
 #endif
 
+#ifndef O_NOFOLLOW
+#define O_NOFOLLOW 0
+#warning O_NOFOLLOW undeclared - ignoring
+#endif
+
+#ifndef O_CLOEXEC
+#define O_CLOEXEC 0
+#endif
+
 /* Number of seconds in a day */
 #define DAY_SECONDS 86400
 
