summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2005-10-29 20:42:02 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2005-10-29 21:40:05 +1000
commit13bd3c97d9cc4661fe58a0ca8a73f8e9f891a8f1 (patch)
tree6834354a98b849cf943698a65d875af6ba92f91a /src
parent[BUILTIN] Disable histcmd completely when SMALL is defined (diff)
downloaddash-13bd3c97d9cc4661fe58a0ca8a73f8e9f891a8f1.tar.gz
dash-13bd3c97d9cc4661fe58a0ca8a73f8e9f891a8f1.zip
[SYSTEM] Added default definition for SSIZE_MAX
klibc doesn't define the macro SSIZE_MAX.
Diffstat (limited to 'src')
-rw-r--r--src/system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 1242e24..833e162 100644
--- a/src/system.h
+++ b/src/system.h
@@ -26,9 +26,14 @@
  * SUCH DAMAGE.
  */
 
+#include <limits.h>
 #include <signal.h>
 #include <sys/types.h>
 
+#ifndef SSIZE_MAX
+#define SSIZE_MAX ((ssize_t)((size_t)-1 >> 1))
+#endif
+
 static inline void sigclearmask(void)
 {
 #ifdef HAVE_SIGSETMASK
3df8a244423563e755&follow=1'>Take first two words in colorMentionsJune McEnroe 2020-02-11Use time_t for save signatureJune McEnroe 2020-02-11Set self.nick to * initiallyJune McEnroe 2020-02-11Define ColorCap instead of hardcoding 100June McEnroe 2020-02-11Move hash to top of chat.hJune McEnroe 2020-02-11Move base64 out of chat.hJune McEnroe 2020-02-11Move XDG_SUBDIR out of chat.hJune McEnroe 2020-02-11Fix whois idle unit calculationJune McEnroe 2020-02-11Cast towupper to wchar_tJune McEnroe 2020-02-11Cast set but unused variables to voidJune McEnroe 2020-02-11Declare strlcatJune McEnroe 2020-02-11Check if VDSUSP existsJune McEnroe 2020-02-11Fix completeReplace iterationJune McEnroe 2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe 2020-02-11Remove legacy codeJune McEnroe 2020-02-11Add INSTALLING section to READMEJune McEnroe