ports/shells/zsh/files/patch-Src_watch.c
Adam Weinberger 26866f517f Clean up Makefile and regenerate patches.
Reorganize Makefile for clarity, and add a few comments.
While here, regenerate the patches with makepatch.

No functional changes.
2016-04-06 04:36:39 +00:00

15 lines
352 B
C

--- Src/watch.c.orig 2015-08-20 19:59:47 UTC
+++ Src/watch.c
@@ -30,8 +30,11 @@
#include "zsh.mdh"
/* Headers for utmp/utmpx structures */
-#ifdef HAVE_UTMP_H
+#if defined(HAVE_UTMP_H) && !defined(HAVE_UTMPX_H)
# include <utmp.h>
+#else
+# undef HAVE_STRUCT_UTMP
+# undef HAVE_STRUCT_UTMP_UT_HOST
#endif
#ifdef HAVE_UTMPX_H
# include <utmpx.h>