ocaml-curses/ocaml-curses-1.0.3-fix-term-h-detection.patch
2023-05-08 11:43:35 +02:00

24 lines
922 B
Diff

--- ocaml-curses-1.0.3.old/configure.ac 2008-11-17 16:37:40.000000000 +0000
+++ ocaml-curses-1.0.3/configure.ac 2017-06-27 09:43:42.703525886 +0100
@@ -91,17 +91,17 @@
AC_MSG_CHECKING(for term.h)
AC_TRY_COMPILE(
- [#include <term.h>], [TERMINAL __dummy],
+ [#include <term.h>], [TERMINAL *__dummy],
[TERM_H_STRING="<term.h>"
AC_DEFINE(CURSES_TERM_H, <term.h>, [Defined to ncurses term.h file])],
[
AC_TRY_COMPILE(
- [#include <ncurses/term.h>], [TERMINAL __dummy],
+ [#include <ncurses/term.h>], [TERMINAL *__dummy],
[TERM_H_STRING="<ncurses/term.h>"
AC_DEFINE(CURSES_TERM_H, <ncurses/term.h>, [Defined to ncurses term.h file])],
[
AC_TRY_COMPILE(
- [#include <curses/term.h>], [TERMINAL __dummy],
+ [#include <curses/term.h>], [TERMINAL *__dummy],
[TERM_H_STRING="<curses/term.h>"
AC_DEFINE(CURSES_TERM_H, <curses/term.h>, [Defined to ncurses term.h file])],
) ]) ])