Commit 6c9da55f authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

autofs: include limit.h before auto_fs.h

In file included from /home/travis/build/xemul/criu/criu/include/autofs.h:16:0,
                 from autofs.c:7:
/usr/include/linux/auto_fs.h:54:12: error: ‘NAME_MAX’ undeclared here (not in a function)
  char name[NAME_MAX+1];

In file included from /home/travis/build/xemul/criu/criu/include/autofs.h:16:0,
                 from autofs.c:7:
/usr/include/linux/auto_fs.h:54:12: error: ‘NAME_MAX’ undeclared here (not in a function)
  char name[NAME_MAX+1];
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 935a2bfa
......@@ -13,6 +13,7 @@ int autofs_dump(struct mount_info *pm);
int autofs_mount(struct mount_info *mi, const char *source, const
char *filesystemtype, unsigned long mountflags);
#include <linux/limits.h>
#include <linux/auto_fs.h>
#include <string.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment