[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Conflicting types for unlock on QNX 6
From: |
Matt Kraai |
Subject: |
Conflicting types for unlock on QNX 6 |
Date: |
Wed, 8 Mar 2006 12:57:10 -0800 |
User-agent: |
Mutt/1.5.11+cvs20060126 |
Howdy,
When I try to compile guile 1.8.0 on QNX 6.3.0, it fails as follows:
> source='threads.c' object='libguile_la-threads.lo' libtool=yes \
> DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
> -I.. -I.. -I/usr/local/include -g -O2 -Wall -Wmissing-prototypes -c -o
> libguile_la-threads.lo `test -f 'threads.c' || echo './'`threads.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I/usr/local/include -g -O2 -Wall
> -Wmissing-prototypes -c threads.c -Wp,-MD,.deps/libguile_la-threads.TPlo
> -fPIC -DPIC -o .libs/libguile_la-threads.o
> threads.c:1401: conflicting types for `unlock'
> /usr/qnx630/target/qnx6/usr/include/unistd.h:490: previous declaration of
> `unlock'
The attached patch renames the unlock function in threads.c to
static_unlock, which fixes the problem.
--
Matt
patch
Description: Text document
signature.asc
Description: Digital signature
- Conflicting types for unlock on QNX 6,
Matt Kraai <=