patch-dvtm_c 640 B

1234567891011121314151617181920212223242526272829303132
  1. $OpenBSD: patch-dvtm_c,v 1.3 2015/12/28 16:18:53 jasper Exp $
  2. Add sys/signal.h for SIGWINCH
  3. --- dvtm.c.orig Mon Dec 28 16:40:33 2015
  4. +++ dvtm.c Mon Dec 28 16:57:53 2015
  5. @@ -36,6 +36,11 @@
  6. #endif
  7. #include "vt.h"
  8. +/* Needed for SIGWINCH */
  9. +#ifdef __OpenBSD__
  10. +#include <sys/signal.h>
  11. +#endif
  12. +
  13. #ifdef PDCURSES
  14. int ESCDELAY;
  15. #endif
  16. @@ -164,8 +169,12 @@ typedef struct {
  17. } Editor;
  18. #define LENGTH(arr) (sizeof(arr) / sizeof((arr)[0]))
  19. +#ifndef MAX
  20. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  21. +#endif
  22. +#ifndef MIN
  23. #define MIN(x, y) ((x) < (y) ? (x) : (y))
  24. +#endif
  25. #define TAGMASK ((1 << LENGTH(tags)) - 1)
  26. #ifdef NDEBUG