Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use GnuLib without Autotools

Tags:

c

windows

My platform (MinGW) does not define the macro ETIMEDOUT, among others. It was suggested in another question that this can be fixed with GnuLib.

I would like to do this but it appears any project wishing to use GnuLib must also use Autotools. My project simply has a Makefile.

How could I supplement my platform with GnuLib without adding Autotools as well?

like image 501
Zombo Avatar asked Nov 04 '22 10:11

Zombo


1 Answers

You can make it easier, just add the folliwng in your header file instead of something like gnulib..


#ifndef ETIMTDOUT
#define ETIMEDOUT 10060
//if you have WSAETIMEDOUT defined, then you can just
//#define ETIMEOUT WSAETIMEDOUT 
#endif
like image 110
ray_linn Avatar answered Nov 15 '22 12:11

ray_linn