Print

Print


@peter-jansson : thanks for bringing this up! 

First of all, unfortunately I couldn't find any predefined macro that will tell us if we are using the musl C library (I am open to any suggestions). But let's say we do in cmake something like:
```
check_function_exists( pthread_rwlockattr_setkind_np, HAS_NP)
if( NOT HAS_NP )
  add_compile_definitions( __MUSL__ )
endif()
```
Then we can use the `__MUSL__` macro to make sure the `_np` functions are not used.

However, having this in place (and fixing few other small issues) I run into the following problems:
- `error: 'innetgr' was not declared in this scope`
- the `uuid/uuid.h` header is missing (AFAIU the there's not package providing it)
- `error: 'timeval' does not name a type`

Now, I'm not sure we can work around those problems, especially the missing `uuid/uuid.h` header (I couldn't find any package providing it).

If you are willing to contribute, please open a PR and we can try to address those issues one by one.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1645#issuecomment-1072464800
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1