Skip to content

Commit

Permalink
add back minimal fcntl.h needed for openat exposure
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhams committed Dec 12, 2020
1 parent 9d0de24 commit 2aa80c3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libdicl/configure.ac
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AC_PREREQ(2.65)
AC_INIT([libdicl],
[0.1.38],
[0.1.39],
[[email protected]])

AC_SUBST(ACLOCAL_AMFLAGS, "-I macros")
Expand Down
1 change: 1 addition & 0 deletions libdicl/src/repl_headers/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ replinclude_HEADERS= \
dirent.h \
endian.h \
error.h \
fcntl.h \
fnmatch.h \
getopt-cdefs.h \
getopt-core.h \
Expand Down
21 changes: 21 additions & 0 deletions libdicl/src/repl_headers/fcntl.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#ifndef LIBDICL_FCNTL_H
#define LIBDICL_FCNTL_H

#if defined(__GNUC__)
#include_next <fcntl.h>
#else
#include "/usr/include/fcntl.h"
#endif

#if defined(__cplusplus)
extern "C" {
#endif
/* Missing pieces */
extern int openat(int fd, const char *path, int oflag, ...);

#if defined(__cplusplus)
}
#endif

#endif

0 comments on commit 2aa80c3

Please sign in to comment.