D6631: Fix compilation with strict libc (such as musl)
    Michael Pyne 
    noreply at phabricator.kde.org
       
    Fri Jul 21 23:42:08 UTC 2017
    
    
  
mpyne added a comment.
  In https://phabricator.kde.org/D6631#126937, @bcooksley wrote:
  
  > Sorry, looks like it's still unhappy (another different error). This time it's complaining about gettimeofday()
  >  According to https://github.com/kinetiknz/cubeb/issues/6 defining XOPEN_SOURCE will sort this, but i'm not sure if musl is okay with that?
  
  
  musl is fine with `XOPEN_SOURCE` as long as it's defined properly.  It implies `_POSIX_C_SOURCE` in the FreeBSD headers anyways, though musl amusingly doesn't care at all for `gettimeofday`.  musl *did* care for signals-related functions, but it defines those under `_XOPEN_SOURCE` as well (see https://anonscm.debian.org/cgit/collab-maint/musl.git/tree/include/signal.h).  I'll take a look.
REPOSITORY
  R106 KSysguard
REVISION DETAIL
  https://phabricator.kde.org/D6631
To: mpyne, #plasma, mart
Cc: bcooksley, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170721/ed0dde83/attachment.html>
    
    
More information about the Plasma-devel
mailing list