chiark / gitweb /
Major cleanup of all leftovers after rebasing on master.
[elogind.git] / src / shared / pager.c
index 7818d0273c8ce0aab75ee63a31b7fc95ce43538f..f1f3dc7e7edb41a3c5d9320ffa02b7557efe5217 100644 (file)
@@ -153,10 +153,14 @@ void pager_close(void) {
 
         /* Inform pager that we are done */
         fclose(stdout);
+#if defined(__GLIBC__)
         stdout = NULL;
+#endif // in musl-libc this is a const
 
         fclose(stderr);
+#if defined(__GLIBC__)
         stderr = NULL;
+#endif // in musl-libc this is a const
 
         kill(pager_pid, SIGCONT);
         (void) wait_for_terminate(pager_pid, NULL);