pkgsrc/devel/libslang2/patches/patch-ac
bjs cf752cac76 Import devel/libslang2 (version 2.1.3). This is the current
version, and packages should switch to it as they are deemed compatible.
blurb:

S-Lang is a C programmer's library that includes routines for the rapid
development of sophisticated, user friendly, multi-platform applications.

The S-Lang library includes the following:

 -	Low level tty input routines for reading single characters at a
	time, as well as low-level terminal-independent routines for
	manipulating the display of a terminal.

 - 	Keymap routines for defining keys and manipulating multiple
	keymaps.

 -	High level screen management routines for manipulating both
 	monochrome and color terminals.  These routines are very efficient.

 -	Routines for reading single line input with line editing and recall
	capabilities.

 -	Searching functions: both ordinary searches and regular expression
	searches.

 -	An embedded stack-based language interpreter with a C-like syntax.

 -	A malloc debugging package
2008-08-09 21:22:11 +00:00

16 lines
360 B
Text

$NetBSD: patch-ac,v 1.1.1.1 2008/08/09 21:22:11 bjs Exp $
--- src/slang.h.orig 2007-10-28 18:37:14.000000000 -0400
+++ src/slang.h
@@ -43,6 +43,11 @@ USA.
# endif
#endif /* __watcomc__ */
+#if defined(__NetBSD__) || defined(__APPLE__)
+#undef unix
+#define unix 1
+#endif
+
#if defined(unix) || defined(__unix)
# ifndef __unix__
# define __unix__ 1