aalib patch

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
CHERTS
Posts: 15
Joined: Mon Oct 29, 2007 2:23 pm

aalib patch

Post by CHERTS »

When compiling aalib error:
$ make
make -C src all
make[1]: Entering directory `/cygdrive/c/svn/aalib/src'
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_
PSP_FW_VERSION=150 -c -o aastdin.o aastdin.c
aastdin.c: In function 'stdin_getchar':
aastdin.c:58: error: 'fd_set' undeclared (first use in this function)
aastdin.c:58: error: (Each undeclared identifier is reported only once
aastdin.c:58: error: for each function it appears in.)
aastdin.c:58: error: expected ';' before 'readfds'
aastdin.c:61: error: 'readfds' undeclared (first use in this function)
make[1]: *** [aastdin.o] Error 1
make[1]: Leaving directory `/cygdrive/c/svn/aalib/src'
make: *** [all] Error 2
The patch to correct errors
aalib.patch

Code: Select all

--- src/aastdin.c	2008-10-02 09:59:00.000000000 +0600
+++ src/aastdin.c.new	2008-11-09 14:10:40.000000000 +0500
@@ -5,6 +5,7 @@
 #include <setjmp.h>
 #include <sys/time.h>
 #include <sys/types.h>
+#include <sys/fd_set.h>
 #ifdef GPM_MOUSEDRIVER
 #include <gpm.h>
 #endif
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Code: Select all

Sending        aalib/src/aastdin.c
Transmitting file data .
Committed revision 2444.
Committed.
Post Reply