return 0;
}
-#ifndef HAVE_STRLCPY
+#if !HAVE_STRLCPY
size_t strlcpy(char *dest, const char *src, size_t size)
{
size_t ret = strlen(src);
}
#endif
-#ifndef HAVE_STRLCAT
+#if !HAVE_STRLCAT
size_t strlcat(char *d, const char *s, size_t n)
{
size_t l = strnlen(d, n);
extern int safe_mount(const char *src, const char *dest, const char *fstype,
unsigned long flags, const void *data, const char *rootfs);
-#ifndef HAVE_STRLCPY
+#if !HAVE_STRLCPY
extern size_t strlcpy(char *, const char *, size_t);
#endif
-#ifndef HAVE_STRLCAT
+#if !HAVE_STRLCAT
extern size_t strlcat(char *d, const char *s, size_t n);
#endif
return total_len;
}
-#if RELOADTEST
+#ifdef RELOADTEST
static inline void iwashere(void)
{
mknod("/tmp/lxcfs-iwashere", S_IFREG, 0644);
ssize_t total_len = 0, ret = 0;
double busytime, idletime, reaperage;
-#if RELOADTEST
+#ifdef RELOADTEST
iwashere();
#endif
extern void prune_init_slice(char *cg);
extern int wait_for_pid(pid_t pid);
-#ifndef HAVE_PIDFD_OPEN
+#if !HAVE_PIDFD_OPEN
static inline int pidfd_open(pid_t pid, unsigned int flags)
{
return syscall(__NR_pidfd_open, pid, flags);
}
#endif
-#ifndef HAVE_PIDFD_SEND_SIGNAL
+#if !HAVE_PIDFD_SEND_SIGNAL
static inline int pidfd_send_signal(int pidfd, int sig, siginfo_t *info,
unsigned int flags)
{