2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 01:49:31 +00:00

tree-wide: fix HAVE_* checks

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner
2021-09-27 12:15:05 +02:00
parent afdad1798e
commit 34498deaa3
20 changed files with 23 additions and 23 deletions

View File

@@ -17,7 +17,7 @@
#include "memory_utils.h"
#include "process_utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -304,7 +304,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
* Helper macro to define errno string.
*/
#if HAVE_STRERROR_R
#ifndef HAVE_DECL_STRERROR_R
#if !HAVE_DECL_STRERROR_R
#ifdef STRERROR_R_CHAR_P
char *strerror_r(int errnum, char *buf, size_t buflen);
#else

View File

@@ -84,7 +84,7 @@ static inline void cleanup_handler(struct lxc_async_descr *descr,
delete_handler(handler);
}
#ifndef HAVE_LIBURING
#if !HAVE_LIBURING
static inline int __lxc_mainloop_io_uring(struct lxc_async_descr *descr,
int timeout_ms)
{
@@ -514,7 +514,7 @@ void lxc_mainloop_close(struct lxc_async_descr *descr)
}
if (descr->type == LXC_MAINLOOP_IO_URING) {
#ifdef HAVE_LIBURING
#if HAVE_LIBURING
io_uring_queue_exit(descr->ring);
munmap(descr->ring, sizeof(struct io_uring));
#else

View File

@@ -30,7 +30,7 @@
#include "state.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -39,7 +39,7 @@
#include "syscall_wrappers.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -31,11 +31,11 @@
#include <security/_pam_macros.h>
#include <security/pam_modules.h>
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif
#ifndef HAVE_STRLCAT
#if !HAVE_STRLCAT
#include "strlcat.h"
#endif

View File

@@ -23,11 +23,11 @@
#include "storage.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif
#ifndef HAVE_STRLCAT
#if !HAVE_STRLCAT
#include "strlcat.h"
#endif

View File

@@ -19,7 +19,7 @@
#include "syscall_wrappers.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -14,7 +14,7 @@
#include "storage_utils.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -40,7 +40,7 @@
#include "utils.h"
#include "zfs.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -28,7 +28,7 @@
#include "syscall_wrappers.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -6,7 +6,7 @@
#include "config.h"
#ifndef HAVE_STRCHRNUL
#if !HAVE_STRCHRNUL
#include "strchrnul.h"
#endif

View File

@@ -24,7 +24,7 @@
#include "storage_utils.h"
#include "utils.h"
#ifndef HAVE_GETSUBOPT
#if !HAVE_GETSUBOPT
#include "include/getsubopt.h"
#endif

View File

@@ -31,7 +31,7 @@
#include "lxctest.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -30,7 +30,7 @@
#include "../lxc/lxc.h"
#include "../lxc/memory_utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -32,7 +32,7 @@
#include <lxc/lxccontainer.h>
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -35,7 +35,7 @@
#include "lxctest.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -24,7 +24,7 @@
#include "memory_utils.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -31,7 +31,7 @@
#include "lxctest.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif

View File

@@ -31,7 +31,7 @@
#include "lxctest.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
#if !HAVE_STRLCPY
#include "strlcpy.h"
#endif