whereami icon indicating copy to clipboard operation
whereami copied to clipboard

added support for kFreeBSD and GNU Hurd

Open yangfl opened this issue 5 years ago • 3 comments

Ref: https://github.com/marcIhm/yabasic/pull/29

yangfl avatar Apr 11 '20 03:04 yangfl

I would add the _GNU_SOURCE like this:

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

darealshinji avatar Jun 13 '23 20:06 darealshinji

I think a correct check for kFreeBSD would be #if defined(__linux__) || ... || (defined(__FreeBSD_kernel__) && defined(__GLIBC__))

You need to check for __GLIBC__ to as FreeBSD also defines __FreeBSD_kernel__

darealshinji avatar Oct 16 '23 12:10 darealshinji

I think it's enough to check __GNU__ only since we do not really care whether it is __FreeBSD_kernel__ or something else, just GNU-like environment.

yangfl avatar Oct 16 '23 18:10 yangfl