summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEnno Boland <g@s01.de>2017-04-26 11:02:13 +0200
committerEnno Boland <g@s01.de>2017-04-26 12:46:55 +0200
commitce8a001a9ddbd32588934743f4f7e4edb9cdb735 (patch)
tree66e542011b5a81bb8199bcf8df2bd341cf83951e /src
parent7cb2e62e2f3f41545b601cfe074adb22ad357b53 (diff)
do not change stderr/stdout variables.
musl for example marks those variables as const and therefore fails while building at this file.
Diffstat (limited to 'src')
-rw-r--r--src/shared/pager.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared/pager.c b/src/shared/pager.c
index bc2d0372c..789d20003 100644
--- a/src/shared/pager.c
+++ b/src/shared/pager.c
@@ -150,8 +150,13 @@ void pager_close(void) {
return;
/* Inform pager that we are done */
+#if defined(__GLIBC__)
stdout = safe_fclose(stdout);
stderr = safe_fclose(stderr);
+#else
+ (void) safe_fclose(stdout);
+ (void) safe_fclose(stderr);
+#endif // in musl-libc these are const
(void) kill(pager_pid, SIGCONT);
(void) wait_for_terminate(pager_pid, NULL);