Skip to content

compile fail due to missing unistd.h header #89

@GoogleCodeExporter

Description

@GoogleCodeExporter
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 >/

Original issue reported on code.google.com by [email protected] on 9 Aug 2012 at 9:04

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions