Mercury-Language / mercury

The Mercury logic programming system.
Other
904 stars 54 forks source link

Fix install of extras/net #112

Closed poldy closed 1 year ago

poldy commented 1 year ago

I preferred this to extras/posix because it supports IPv6. I've tested it on macOS

Although the use of PTHREAD_MUTEX_INITIALIZER is correct, it may not fit the desired style. Could introduce a #define alongside MR_MUTEX_ATTR if preferred.

juliensf commented 1 year ago

Thanks for reporting that! I've added your fix with some minor modifications.

(PTHREAD_MUTEX_INTIALIZER should probably have a #define in the runtime, but that's a separate issue -- quite a bit of pthreads specific code has leaked out of the runtime anyway.)