redmine

Fixed building on Debian/kFreeBSD

Showing 1 changed file with 3 additions and 1 deletions
@@ -2763,7 +2763,8 @@ int main(int _argc, char *_argv[]) { @@ -2763,7 +2763,8 @@ int main(int _argc, char *_argv[]) {
2763 2763
2764 } 2764 }
2765 2765
2766 -#ifdef GETMNTENT_SUPPORT 2766 +#ifdef UNSHARE_SUPPORT
  2767 +# ifdef GETMNTENT_SUPPORT
2767 if (ctx_p->mountpoints && (ent_f != NULL)) { 2768 if (ctx_p->mountpoints && (ent_f != NULL)) {
2768 // Getting mount-points to be umounted 2769 // Getting mount-points to be umounted
2769 while (NULL != (ent = getmntent(ent_f))) { 2770 while (NULL != (ent = getmntent(ent_f))) {
@@ -2792,6 +2793,7 @@ int main(int _argc, char *_argv[]) { @@ -2792,6 +2793,7 @@ int main(int _argc, char *_argv[]) {
2792 2793
2793 endmntent(ent_f); 2794 endmntent(ent_f);
2794 } 2795 }
  2796 +# endif
2795 #endif 2797 #endif
2796 if (ctx_p->chroot_dir != NULL) { 2798 if (ctx_p->chroot_dir != NULL) {
2797 #ifdef PIVOTROOT_OPT_SUPPORT 2799 #ifdef PIVOTROOT_OPT_SUPPORT