Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ dnl ######################################################################
AC_C_CONST

AC_FUNC_FSEEKO
AC_FUNC_ALLOCA
AC_SYS_LARGEFILE
AC_TYPE_OFF_T

Expand Down
18 changes: 18 additions & 0 deletions libutils/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,24 @@ void globfree(glob_t *pglob);
# endif
#endif

// from https://www.gnu.org/software/autoconf/manual/autoconf-2.60/html_node/Particular-Functions.html
#if HAVE_ALLOCA_H
# include <alloca.h>
#elif defined __GNUC__
# define alloca __builtin_alloca
#elif defined _AIX
# define alloca __alloca
#elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
#else
# include <stddef.h>
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
#endif

#include <fcntl.h>

#ifdef HAVE_VFS_H
Expand Down
Loading