Skip to content

Commit 2aa80c3

Browse files
committed
add back minimal fcntl.h needed for openat exposure
1 parent 9d0de24 commit 2aa80c3

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

libdicl/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AC_PREREQ(2.65)
22
AC_INIT([libdicl],
3-
[0.1.38],
3+
[0.1.39],
44
[daniel.hams@gmail.com])
55

66
AC_SUBST(ACLOCAL_AMFLAGS, "-I macros")

libdicl/src/repl_headers/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ replinclude_HEADERS= \
1818
dirent.h \
1919
endian.h \
2020
error.h \
21+
fcntl.h \
2122
fnmatch.h \
2223
getopt-cdefs.h \
2324
getopt-core.h \

libdicl/src/repl_headers/fcntl.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#ifndef LIBDICL_FCNTL_H
2+
#define LIBDICL_FCNTL_H
3+
4+
#if defined(__GNUC__)
5+
#include_next <fcntl.h>
6+
#else
7+
#include "/usr/include/fcntl.h"
8+
#endif
9+
10+
#if defined(__cplusplus)
11+
extern "C" {
12+
#endif
13+
14+
/* Missing pieces */
15+
extern int openat(int fd, const char *path, int oflag, ...);
16+
17+
#if defined(__cplusplus)
18+
}
19+
#endif
20+
21+
#endif

0 commit comments

Comments
 (0)