Skip to content

Commit def698a

Browse files
committed
- it seems better to place libs by default in $PREFIX/lib instead of
$PREFIX/lib64 on amd64 systems. /usr/local/lib64 doesn't exist here. Changed the configure script to do that - fixed a bug, when read_event reads 0 bytes from the socket, that's not a valid event, and it should return 0. git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/libspnav@84 ef983eb1-d774-4af8-acfd-baaf7b16a646
1 parent a51f7fc commit def698a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

configure

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ X11=yes
1010
srcdir="`dirname "$0"`"
1111
libdir=lib
1212

13-
if [ "`uname -m`" = 'x86_64' ]; then
14-
libdir=lib64
15-
fi
13+
#if [ "`uname -m`" = 'x86_64' ]; then
14+
# libdir=lib64
15+
#fi
1616

1717
for arg; do
1818
case "$arg" in

spnav.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static int read_event(int s, spnav_event *event)
320320
rd = read(s, data, sizeof data);
321321
} while(rd == -1 && errno == EINTR);
322322

323-
if(rd == -1) {
323+
if(rd <= 0) {
324324
return 0;
325325
}
326326

0 commit comments

Comments
 (0)