1
0

patch-src_shutdown_c 581 B

123456789101112131415161718
  1. --- watchdog-5.13.orig/src/shutdown.c 2013-02-01 12:15:44.000000000 +0100
  2. +++ watchdog-5.13/src/shutdown.c 2014-03-22 16:29:44.000000000 +0100
  3. @@ -186,6 +186,7 @@ static void mnt_off()
  4. FILE *fp;
  5. struct mntent *mnt;
  6. +#if defined __GLIBC__
  7. fp = setmntent(MNTTAB, "r");
  8. /* in some rare cases fp might be NULL so be careful */
  9. while (fp != NULL && ((mnt = getmntent(fp)) != (struct mntent *) 0)) {
  10. @@ -241,6 +242,7 @@ static void mnt_off()
  11. #endif
  12. }
  13. endmntent(fp);
  14. +#endif
  15. }
  16. /* Parts of the following two functions are taken from Miquel van */