Pages

Monday, July 14, 2014

o_cloexec' undeclared (first use in this function)

o_cloexec' undeclared (first use in this function)

I attempted to compile and install a software [ libtool ] from Source in CentOS Release 6.5 . While doing a compile, I was struck up with this error.

o_cloexec' undeclared (first use in this function)

A Solution for this issue is available here.

https://github.com/mhei/libugpio/issues/1

(1)
#define _GNU_SOURCE
# include <fcntl.h>

Or
(2)
#ifndef O_CLOEXEC
#define O_CLOEXEC 0
#endif

No comments:

Post a Comment