Commit 935a2bfa authored by Mike Rapoport's avatar Mike Rapoport Committed by Pavel Emelyanov

autofs: fix build on Fedora 22

The following error happens when building CRIU on Fedora 22:

  CC       autofs.o
autofs.c: In function ‘autofs_mount’:
autofs.c:892:9: error: implicit declaration of function ‘add_post_prepare_cb’ [-Werror=implicit-function-declaration]
   ret = add_post_prepare_cb(autofs_add_mount_info, mi);
         ^
cc1: all warnings being treated as errors

Adding forward declaration of add_post_prepare_cb resolves the issue.
Signed-off-by: 's avatarMike Rapoport <rapoport@il.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 8601487a
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "namespaces.h" #include "namespaces.h"
#include "protobuf.h" #include "protobuf.h"
#include "pipes.h" #include "pipes.h"
#include "crtools.h"
#include "images/autofs.pb-c.h" #include "images/autofs.pb-c.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