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