added a missing '#ifdef HAVE_LINUXTHREADS'

This commit is contained in:
Andreas Gustafsson
2000-04-11 20:29:37 +00:00
parent ad2c5d060d
commit e5afb85e52
+2
View File
@@ -254,9 +254,11 @@ ns_os_changeuser(const char *username) {
if (username == NULL || getuid() != 0)
return;
#ifdef HAVE_LINUXTHREADS
if (!non_root_caps)
ns_main_earlyfatal(
"-u not supported on Linux kernels older than 2.3.99-pre3");
#endif
if (all_digits(username))
pw = getpwuid((uid_t)atoi(username));