diff options
author | bje <bje> | 1998-08-10 18:34:40 +0000 |
---|---|---|
committer | bje <bje> | 1998-08-10 18:34:40 +0000 |
commit | 11f26f7ac85cc1b1b842bea4be656f7ac0f5fc7a (patch) | |
tree | 60edac9412c14fdee0eb5b4a014e4f7607b49dfd | |
parent | 9b0e93aa59205fa6e35f0d8e5c2065c6e806f114 (diff) |
1998-08-11 Ben Elliston <bje@cygnus.com>pre-compiled-auug99
* Makefile (LIB): Define.
(clean): Define target.
(all): Build a library not just the object files.
* pthread.h: Provide a definition for struct timespec if we don't
already have one.
* windows.c (TlsGetValue): Bug fix.
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | pthread.h | 7 | ||||
-rw-r--r-- | windows.c | 4 |
4 files changed, 30 insertions, 4 deletions
@@ -1,3 +1,14 @@ +1998-08-11 Ben Elliston <bje@cygnus.com> + + * Makefile (LIB): Define. + (clean): Define target. + (all): Build a library not just the object files. + + * pthread.h: Provide a definition for struct timespec if we don't + already have one. + + * windows.c (TlsGetValue): Bug fix. + Thu Aug 6 15:19:22 1998 Ross Johnson <rpj@swan.canberra.edu.au> * misc.c (pthread_once): Fix arg 1 of EnterCriticalSection() @@ -3,8 +3,16 @@ CFLAGS = -I. -DHAVE_CONFIG_H -Wall OBJS = attr.o cancel.o cleanup.o condvar.o create.o dll.o \ exit.o fork.o global.o misc.o mutex.o private.o sched.o \ - signal.o sync.o tsd.o + signal.o sync.o tsd.o windows.o INCL = implement.h pthread.h windows.h -all: $(OBJS) +LIB = libpthread32.a + +all: $(LIB) + +$(LIB): $(OBJS) + $(AR) r $(LIB) $(OBJS) + +clean: + -rm $(LIB) *.o @@ -40,6 +40,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <signal.h> #endif /* HAVE_SIGNAL_H */ +#ifndef HAVE_STRUCT_TIMESPEC +struct timespec { + int tv_sec; + int tv_nsec; +}; +#endif /* HAVE_STRUCT_TIMESPEC */ + #ifndef SIG_BLOCK #define SIG_BLOCK 0 #endif /* SIG_BLOCK */ @@ -98,10 +98,10 @@ BOOL TlsSetValue(DWORD index, LPVOID value) return TRUE; } -BOOL TlsGetValue(DWORD index, LPVOID value) +LPVOID TlsGetValue(DWORD index) { DIAG("TlsGetValue"); - return TRUE; + return 0; } BOOL SetThreadPriority(HANDLE threadHandle, int priority) |