summaryrefslogtreecommitdiffstats
path: root/include/pathnames.h
diff options
context:
space:
mode:
authorFranco Fichtner2016-08-11 15:03:50 +0200
committerFranco Fichtner2016-08-11 15:03:50 +0200
commit0773ad14a371a00a2191aa6527c0f80cca3ed6a7 (patch)
tree852db87247723577bdc018accd444b706122ef4c /include/pathnames.h
parentlibmount: Preserve empty string value in optstr parsing (diff)
downloadkernel-qcow2-util-linux-0773ad14a371a00a2191aa6527c0f80cca3ed6a7.tar.gz
kernel-qcow2-util-linux-0773ad14a371a00a2191aa6527c0f80cca3ed6a7.tar.xz
kernel-qcow2-util-linux-0773ad14a371a00a2191aa6527c0f80cca3ed6a7.zip
pathnames: guard clashing definitions on FreeBSD
Diffstat (limited to 'include/pathnames.h')
-rw-r--r--include/pathnames.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/pathnames.h b/include/pathnames.h
index de6a13c3a..05fb082ea 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -46,10 +46,14 @@
#define _PATH_MAILDIR "/var/spool/mail"
#endif
#define _PATH_MOTDFILE "/etc/motd"
+#ifndef _PATH_NOLOGIN
#define _PATH_NOLOGIN "/etc/nologin"
+#endif
#define _PATH_VAR_NOLOGIN "/var/run/nologin"
+#ifndef _PATH_LOGIN
#define _PATH_LOGIN "/bin/login"
+#endif
#define _PATH_SHUTDOWN "/sbin/shutdown"
#define _PATH_TERMCOLORS_DIRNAME "terminal-colors.d"