<commit_before><commit_msg>initial slang patch to add support for Haiku<commit_after>diff -urN slang-2.1.3/src/sldisply.c slang-2.1.3-haiku/src/sldisply.c
--- slang-2.1.3/src/sldisply.c	2007-05-16 02:47:04.000000000 +0000
+++ slang-2.1.3-haiku/src/sldisply.c	2008-08-24 04:35:29.000000000 +0000
@@ -26,13 +26,13 @@
 
 #if !defined(VMS) || (__VMS_VER >= 70000000)
 # include <sys/time.h>
-# ifdef __QNX__
+# if defined __QNX__ || defined __HAIKU__
 #  include <sys/select.h>
 # endif
 # include <sys/types.h>
 #endif
 
-#ifdef __BEOS__
+#if defined __BEOS__ && !defined __HAIKU__
 /* Prototype for select */
 # include <net/socket.h>
 #endif
diff -urN slang-2.1.3/src/slutty.c slang-2.1.3-haiku/src/slutty.c
--- slang-2.1.3/src/slutty.c	2007-04-23 06:36:37.000000000 +0000
+++ slang-2.1.3-haiku/src/slutty.c	2008-08-24 04:37:32.000000000 +0000
@@ -43,7 +43,7 @@
 # endif
 #endif
 
-#ifdef __BEOS__
+#if defined  __BEOS__ && !defined __HAIKU__
 /* Prototype for select */
 # include <net/socket.h>
 #endif
@@ -54,7 +54,7 @@
 # include <sys/ioctl.h>
 #endif
 
-#ifdef __QNX__
+#if defined __QNX__ || defined __HAIKU__
 # include <sys/select.h>
 #endif
 

{'fraction_non_alphanumeric': 0.17984361424847958, 'fraction_numerical': 0.13900955690703737, 'mean_word_length': 3.5, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 5, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5884659', 'n_tokens_mistral': 628, 'n_tokens_neox': 521, 'n_words': 97}