A
abdur_rab7
Hi,
I am compiling code for nanosleep in CYGWIN.
During compilation i get the following error
Socket.cc: In method `bool Socket::hangOnConnection(int = 0)':
Socket.cc:338: aggregate `struct timespec tmsp' has incomplete type and
cannot b
e initialized
The Source realted to it is
bool Socket :: hangOnConnection (int nNanoSecond)
{
struct timespec tmsp;
/*tmsp.tv_sec = (time_t) 0;
if (nNanoSecond) tmsp.tv_nsec = nNanoSecond;
else tmsp.tv_nsec = 110;
if (nanosleep (&tmsp, NULL) < 0)
{
DEBUG_MSG ("Error occured during hangOn");
return false;
}*/
return true;
}
"struct timespec" is defined in <sys/types.h>
Please suggest me how to debug it
Best Regards,
Abdur
I am compiling code for nanosleep in CYGWIN.
During compilation i get the following error
Socket.cc: In method `bool Socket::hangOnConnection(int = 0)':
Socket.cc:338: aggregate `struct timespec tmsp' has incomplete type and
cannot b
e initialized
The Source realted to it is
bool Socket :: hangOnConnection (int nNanoSecond)
{
struct timespec tmsp;
/*tmsp.tv_sec = (time_t) 0;
if (nNanoSecond) tmsp.tv_nsec = nNanoSecond;
else tmsp.tv_nsec = 110;
if (nanosleep (&tmsp, NULL) < 0)
{
DEBUG_MSG ("Error occured during hangOn");
return false;
}*/
return true;
}
"struct timespec" is defined in <sys/types.h>
Please suggest me how to debug it
Best Regards,
Abdur