ports/lang/gnucobol/patches/patch-libcob_common_c

12 lines
722 B
Text

Index: libcob/common.c
--- libcob/common.c.orig
+++ libcob/common.c
@@ -407,7 +407,7 @@ static struct config_tbl gc_conf[] = {
{"LOGNAME", "logname", NULL, NULL, GRP_HIDE, ENV_STR, SETPOS (cob_user_name)},
#if !defined (_WIN32) || defined (__MINGW32__) /* cygwin does not define _WIN32 */
{"LANG", "lang", NULL, NULL, GRP_SYSENV, ENV_STR, SETPOS (cob_sys_lang)},
-#if defined (__linux__) || defined (__CYGWIN__) || defined (__MINGW32__)
+#if defined (__linux__) || defined (__CYGWIN__) || defined (__MINGW32__) || defined(__OpenBSD__)
{"OSTYPE", "ostype", NULL, NULL, GRP_SYSENV, ENV_STR, SETPOS (cob_sys_type)},
#endif
{"TERM", "term", NULL, NULL, GRP_SYSENV, ENV_STR, SETPOS (cob_sys_term)},