File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ case "${host}" in
547547 mips*-ps2-*)
548548 sys_dir=ps2
549549 posix_dir=posix
550- newlib_cflags="${newlib_cflags} -G0 -DHAVE_NANOSLEEP -DHAVE_RENAME -DHAVE_FCNTL -D_NO_POSIX_SPAWN"
550+ newlib_cflags="${newlib_cflags} -G0 -DHAVE_NANOSLEEP -DHAVE_RENAME -DHAVE_FCNTL -D_NO_POSIX_SPAWN -DHAVE_DD_LOCK "
551551 ;;
552552 mmix-knuth-mmixware)
553553 sys_dir=mmixware
Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ subroutines are required for linking multi-threaded applications.
8181
8282/* dummy lock routines and static locks for single-threaded apps */
8383
84- #ifndef __SINGLE_THREAD__
84+ #include <newlib.h>
85+
86+ #if defined(__SINGLE_THREAD__ )
8587
8688#include <sys/lock.h>
8789
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ typedef struct __dirdesc {
88 char * dd_buf ; /* buffer */
99 int dd_len ; /* buffer length */
1010 int dd_size ; /* amount of data in buffer */
11+ void * dd_lock ; /* lock */
1112} DIR ;
1213
1314# define __dirfd (dp ) ((dp)->dd_fd)
You can’t perform that action at this time.
0 commit comments