Issue 89 in ucimf: compile fail due to missing unistd.h header

15 views
Skip to first unread message

uc...@googlecode.com

unread,
Aug 9, 2012, 5:04:53 AM8/9/12
to uc...@googlegroups.com
Status: New
Owner: ----

New issue 89 by dennis.y...@gmail.com: compile fail due to missing unistd.h
header
http://code.google.com/p/ucimf/issues/detail?id=89

compile fail with gcc-4.7.1, following patch fix the problem


ucimf.cpp: In function 'void ucimf_exit()':
ucimf.cpp:251:14: error: 'close' was not declared in this scope
ucimf.cpp: In function 'void init_keycode_state()':
ucimf.cpp:467:8: error: 'STDIN_FILENO' was not declared in this scope
ucimf.cpp: In function 'short unsigned int keycode_to_keysym(short unsigned
int, char)':
ucimf.cpp:482:12: error: 'STDIN_FILENO' was not declared in this scope
ucimf.cpp:486:13: error: 'STDIN_FILENO' was not declared in this scope
ucimf.cpp:506:11: error: 'STDIN_FILENO' was not declared in this scope
ucimf.cpp:523:11: error: 'STDIN_FILENO' was not declared in this scope
ucimf.cpp: In function 'char* keysym_to_term_string(short unsigned int,
char)':
ucimf.cpp:630:9: error: 'STDIN_FILENO' was not declared in this scope
libtool: compile: i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..
-I../include -I../include/imf -I../font -I../display -O2 -march=i686 -pipe
-O2 -march=prescott -pipe -fomit-frame-pointer -fprefetch-loop-arrays -c
graphport.cpp -o libucimf_la-graphport.o >/

Attachments:
libucimf-unistd.patch 256 bytes

Reply all
Reply to author
Forward
0 new messages