char *buffer, int bufsiz);
#endif
-#if !defined(HAVE_SETMNTENT) || IS_BIONIC
+#if !HAVE_SETMNTENT || IS_BIONIC
__hidden FILE *setmntent(const char *file, const char *mode);
#endif
-#if !defined(HAVE_ENDMNTENT) || IS_BIONIC
+#if !HAVE_ENDMNTENT || IS_BIONIC
__hidden int endmntent(FILE *stream);
#endif
-#if !defined(HAVE_HASMNTOPT) || IS_BIONIC
+#if !HAVE_HASMNTOPT || IS_BIONIC
__hidden extern char *hasmntopt(const struct mntent *mnt, const char *opt);
#endif
static int set_config_seccomp_allow_nesting(const char *key, const char *value,
struct lxc_conf *lxc_conf, void *data)
{
-#ifdef HAVE_SECCOMP
+#if HAVE_SECCOMP
if (lxc_config_value_empty(value))
return clr_config_seccomp_allow_nesting(key, lxc_conf, NULL);
static int set_config_seccomp_profile(const char *key, const char *value,
struct lxc_conf *lxc_conf, void *data)
{
-#ifdef HAVE_SECCOMP
+#if HAVE_SECCOMP
return set_config_path_item(&lxc_conf->seccomp.seccomp, value);
#else
return ret_errno(ENOSYS);
int inlen, struct lxc_conf *c,
void *data)
{
-#ifdef HAVE_SECCOMP
+#if HAVE_SECCOMP
return lxc_get_conf_int(c, retv, inlen, c->seccomp.allow_nesting);
#else
return ret_errno(ENOSYS);
static int get_config_seccomp_profile(const char *key, char *retv, int inlen,
struct lxc_conf *c, void *data)
{
-#ifdef HAVE_SECCOMP
+#if HAVE_SECCOMP
return lxc_get_conf_str(retv, inlen, c->seccomp.seccomp);
#else
return ret_errno(ENOSYS);
static inline int clr_config_seccomp_allow_nesting(const char *key,
struct lxc_conf *c, void *data)
{
-#ifdef HAVE_SECCOMP
+#if HAVE_SECCOMP
c->seccomp.allow_nesting = 0;
return 0;
#else