Skip to content

Commit d8331bc

Browse files
committed
scripts/Windows/README.adoc: pthreads: comment on issues with "timespec" [#2724]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 4371b32 commit d8331bc

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

docs/nut.dict

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
personal_ws-1.1 en 3269 utf-8
1+
personal_ws-1.1 en 3270 utf-8
22
AAC
33
AAS
44
ABI
@@ -2992,6 +2992,7 @@ th
29922992
timeframe
29932993
timehead
29942994
timername
2995+
timespec
29952996
timestamp
29962997
timeticks
29972998
timeval

scripts/Windows/README.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,24 @@ You can also compile it (where that is still needed) using:
204204
:; tar xzf "$DLDIR"/pthreads-w32-2-8-0-release.tar.gz
205205
:; cd pthreads-w32-2-8-0-release/
206206
:; make -f GNUmakefile "CROSS=$ARCH-" GC-inlined
207+
208+
[NOTE]
209+
======
210+
If it complains about
211+
`pthread.h:307:8: error: redefinition of 'struct timespec'`
212+
please edit `config.h` to add a `HAVE_STRUCT_TIMESPEC` definition
213+
and re-run `make`, e.g.:
214+
215+
:; echo '#define HAVE_STRUCT_TIMESPEC 1' >> config.h
216+
:; make -f GNUmakefile "CROSS=$ARCH-" GC-inlined
217+
218+
There may also be some warnings from newer compilers about
219+
`cast to pointer from integer of different size` -- these are
220+
presumed inconsequential. You can try a not-"inlined" build instead.
221+
======
222+
223+
Finally, install the resulting files into locations under `PREFIX`:
224+
207225
:; sudo cp *.dll ${PREFIX}/pthreads/lib/
208226
:; sudo cp *.a ${PREFIX}/lib/
209227
:; sudo cp pthread.h sched.h semaphore.h ${PREFIX}/pthreads/include

0 commit comments

Comments
 (0)