Use GnuLib without Autotools

My platform (MinGW) does not define the ETIMEDOUT macro, among others . In another question, it was suggested that this could be fixed using GnuLib.

I would like to do this, but it seems that any project wishing to use GnuLib should also use Autotools . My project just has a makefile.

How can I complement my GnuLib platform without adding Autotools?

+4
source share
2 answers

You can make it easier, just add folliwng to your header file, not something like gnulib ..

 #ifndef ETIMTDOUT #define ETIMEDOUT 10060 //if you have WSAETIMEDOUT defined, then you can just //#define ETIMEOUT WSAETIMEDOUT #endif 
+2
source

Paul Eggert wrote a patch for using gnulib without automake . It is available on the main branch from 2017-03-13. Just call gnulib-tool with --gnu-make .

0
source

Source: https://habr.com/ru/post/1448060/


All Articles