Ticket #56897: patch-ifdefs.diff

File patch-ifdefs.diff, 635 bytes (added by kencu (Ken), 6 years ago)
  • src/cpulimit.c

    diff --git src/cpulimit.c src/cpulimit.c
    index 50eabea..e9c3fbe 100644
     
    4343#include <sys/types.h>
    4444#include <sys/wait.h>
    4545
    46 #ifdef __APPLE__ || __FREEBSD__
     46#if (defined(__APPLE__) || defined(__FREEBSD__))
    4747#include <libgen.h>
    4848#endif
    4949
  • tests/process_iterator_test.c

    diff --git tests/process_iterator_test.c tests/process_iterator_test.c
    index 1615196..dc8fdd1 100644
     
    2828#include <signal.h>
    2929#include <string.h>
    3030
    31 #ifdef __APPLE__ || __FREEBSD__
     31#if (defined(__APPLE__) || defined(__FREEBSD__))
    3232#include <libgen.h>
    3333#endif
    3434