summaryrefslogtreecommitdiff
path: root/package/watchdog/patches/patch-src_shutdown_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-22 21:55:42 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-22 21:55:42 +0100
commitdb7ee5f68d81651baa6d48e6bcd4eaf1662c4619 (patch)
tree65d5d622d7733c53e47b0817d49d865d672cdb53 /package/watchdog/patches/patch-src_shutdown_c
parent844e6bdbb81fe3213e39621b81d48f33534c3f47 (diff)
parent6647520d52d800175545414c027d75ac39c07ecc (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/watchdog/patches/patch-src_shutdown_c')
-rw-r--r--package/watchdog/patches/patch-src_shutdown_c18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/watchdog/patches/patch-src_shutdown_c b/package/watchdog/patches/patch-src_shutdown_c
new file mode 100644
index 000000000..90ba0ee3c
--- /dev/null
+++ b/package/watchdog/patches/patch-src_shutdown_c
@@ -0,0 +1,18 @@
+--- watchdog-5.13.orig/src/shutdown.c 2013-02-01 12:15:44.000000000 +0100
++++ watchdog-5.13/src/shutdown.c 2014-03-22 16:29:44.000000000 +0100
+@@ -186,6 +186,7 @@ static void mnt_off()
+ FILE *fp;
+ struct mntent *mnt;
+
++#if defined __GLIBC__
+ fp = setmntent(MNTTAB, "r");
+ /* in some rare cases fp might be NULL so be careful */
+ while (fp != NULL && ((mnt = getmntent(fp)) != (struct mntent *) 0)) {
+@@ -241,6 +242,7 @@ static void mnt_off()
+ #endif
+ }
+ endmntent(fp);
++#endif
+ }
+
+ /* Parts of the following two functions are taken from Miquel van */