Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.
Open
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
8 changes: 8 additions & 0 deletions compat/module.ac
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ AC_DEFUN([COMPAT_FUNC_BASENAME], [
[compat_cv_func_basename_works],
[AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_LIBGEN_H
# include <libgen.h>
#endif
Expand Down Expand Up @@ -85,6 +87,8 @@ AC_DEFUN([COMPAT_FUNC_DIRNAME], [
[compat_cv_func_dirname_works],
[AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_LIBGEN_H
# include <libgen.h>
#endif
Expand Down Expand Up @@ -157,6 +161,7 @@ AC_DEFUN([COMPAT_FUNC_GLOB], [
[compat_cv_func_glob_works],
[AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_GLOB_H
# include <glob.h>
#endif
Expand Down Expand Up @@ -208,6 +213,7 @@ AC_DEFUN([COMPAT_FUNC_MAKEDEV], [
[compat_cv_func_makedev_three_args],
[AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
#include <stdlib.h>
#include <sys/types.h>
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
Expand Down Expand Up @@ -248,6 +254,8 @@ AC_DEFUN([COMPAT_FUNC_SNPRINTF], [
[compat_cv_func_snprintf_works],
[AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct {
int length;
Expand Down