From 3021393e3698ecfb9e383c4bb2e4daab6b378678 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 21 May 2008 00:03:09 +0000 Subject: [PATCH] Let's pretend we support POSIX threads. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25588 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/unistd.h | 2 ++ src/system/libroot/posix/unistd/conf.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/headers/posix/unistd.h b/headers/posix/unistd.h index bebe2be9eb..ea43538c92 100644 --- a/headers/posix/unistd.h +++ b/headers/posix/unistd.h @@ -36,6 +36,7 @@ #define _POSIX_SAVED_IDS 1 #define _POSIX_VDISABLE ((char)-2) /* TODO: Check this! */ #define _POSIX_SEMAPHORES (200112L) +#define _POSIX_THREADS (200112L) /* pathconf() constants */ #define _PC_CHOWN_RESTRICTED 1 @@ -66,6 +67,7 @@ #define _SC_SEM_NSEMS_MAX 28 #define _SC_SEM_VALUE_MAX 29 #define _SC_SEMAPHORES 30 +#define _SC_THREADS 31 /* lseek() constants */ #ifndef SEEK_SET diff --git a/src/system/libroot/posix/unistd/conf.c b/src/system/libroot/posix/unistd/conf.c index ac2894a9e9..1dddd5b9ac 100644 --- a/src/system/libroot/posix/unistd/conf.c +++ b/src/system/libroot/posix/unistd/conf.c @@ -68,6 +68,8 @@ sysconf(int name) return MAX_POSIX_SEM_VALUE; case _SC_SEMAPHORES: return _POSIX_SEMAPHORES; + case _SC_THREADS: + return _POSIX_THREADS; } return -1;