forked from pool/dialog
48 lines
1.0 KiB
Diff
48 lines
1.0 KiB
Diff
Index: dialog-1.3-20160209/dialog.h
|
|
===================================================================
|
|
---
|
|
dialog.h | 25 +++++++++++++++++--------
|
|
1 file changed, 17 insertions(+), 8 deletions(-)
|
|
|
|
--- dialog.h
|
|
+++ dialog.h 2023-06-19 07:07:17.437234579 +0000
|
|
@@ -43,6 +43,23 @@
|
|
#include <string.h>
|
|
#include <signal.h> /* fork() etc. */
|
|
#include <math.h> /* sqrt() */
|
|
+#include <sys/ioctl.h> /* struct winsize */
|
|
+
|
|
+#ifndef GCC_NORETURN
|
|
+#if defined(__GNUC__)
|
|
+#define GCC_NORETURN __attribute__((noreturn))
|
|
+#else
|
|
+#define GCC_NORETURN /*nothing*/
|
|
+#endif
|
|
+#endif
|
|
+
|
|
+#ifndef GCC_UNUSED
|
|
+#if defined(__GNUC__)
|
|
+#define GCC_UNUSED __attribute__((unused))
|
|
+#else
|
|
+#define GCC_UNUSED /*nothing*/
|
|
+#endif
|
|
+#endif
|
|
|
|
/* header conflict with Solaris xpg4 versus <sys/regset.h> */
|
|
#if defined(ERR) && (ERR == 13)
|
|
@@ -81,14 +98,6 @@
|
|
#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
|
|
#endif
|
|
|
|
-#ifndef GCC_NORETURN
|
|
-#define GCC_NORETURN /*nothing*/
|
|
-#endif
|
|
-
|
|
-#ifndef GCC_UNUSED
|
|
-#define GCC_UNUSED /*nothing*/
|
|
-#endif
|
|
-
|
|
/*
|
|
* FIXME: a configure check would be useful
|
|
*/
|