]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/storage/nbd.c
tree-wide: fix config.h inclusion
[mirror_lxc.git] / src / lxc / storage / nbd.c
index 4a4395bf0492171c915948c3ef083866d280c772..e27a98102709fa9f2d95b5c5b18710addffddfe8 100644 (file)
@@ -1,8 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
-#endif
+#include "config.h"
+
 #include <errno.h>
 #include <stdbool.h>
 #include <stdint.h>
@@ -12,7 +11,6 @@
 #include <sys/prctl.h>
 #include <sys/wait.h>
 
-#include "config.h"
 #include "log.h"
 #include "memory_utils.h"
 #include "nbd.h"
@@ -22,7 +20,7 @@
 #include "utils.h"
 
 #ifndef HAVE_STRLCPY
-#include "include/strlcpy.h"
+#include "strlcpy.h"
 #endif
 
 lxc_log_define(nbd, lxc);
@@ -91,7 +89,7 @@ int nbd_clonepaths(struct lxc_storage *orig, struct lxc_storage *new,
 }
 
 int nbd_create(struct lxc_storage *bdev, const char *dest, const char *n,
-              struct bdev_specs *specs)
+              struct bdev_specs *specs, const struct lxc_conf *conf)
 {
        return -ENOSYS;
 }