Skip to content

Commit 545cdb9

Browse files
yuwatapoettering
authored andcommitted
tree-wide: use instead of #ifdef for HAVE_*
1 parent cc7d50a commit 545cdb9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/firstboot/firstboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <getopt.h>
55
#include <unistd.h>
66

7-
#ifdef HAVE_CRYPT_H
7+
#if HAVE_CRYPT_H
88
/* libxcrypt is a replacement for glibc's libcrypt, and libcrypt might be
99
* removed from glibc at some point. As part of the removal, defines for
1010
* crypt(3) are dropped from unistd.h, and we must include crypt.h instead.

src/resolve/resolved-dnssd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const char* const dnssd_service_dirs[] = {
1111
"/etc/systemd/dnssd",
1212
"/run/systemd/dnssd",
1313
"/usr/lib/systemd/dnssd",
14-
#ifdef HAVE_SPLIT_USR
14+
#if HAVE_SPLIT_USR
1515
"/lib/systemd/dnssd",
1616
#endif
1717
NULL

src/tmpfiles/tmpfiles.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ static int fd_set_acls(Item *item, int fd, const struct stat *st) {
10521052

10531053
static int path_set_acls(Item *item, const char *path) {
10541054
int r = 0;
1055-
#ifdef HAVE_ACL
1055+
#if HAVE_ACL
10561056
_cleanup_close_ int fd = -1;
10571057
struct stat st;
10581058

@@ -1067,9 +1067,9 @@ static int path_set_acls(Item *item, const char *path) {
10671067
return log_error_errno(errno, "Failed to fstat() file %s: %m", path);
10681068

10691069
r = fd_set_acls(item, fd, &st);
1070-
#endif
1071-
return r;
1072-
}
1070+
#endif
1071+
return r;
1072+
}
10731073

10741074
#define ATTRIBUTES_ALL \
10751075
(FS_NOATIME_FL | \

0 commit comments

Comments
 (0)