util: Define strchrnul on macOS.
authorVinson Lee <vlee@freedesktop.org>
Fri, 30 Aug 2019 06:56:17 +0000 (23:56 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 31 Aug 2019 20:26:10 +0000 (13:26 -0700)
commit4771f6bccca060fcdceb89205740c94756733df5
treec5fd5d2e2560c35793ddb994c1ec6607374ba300
parent52af1427c6d248829130ce25b86cd27a31d34633
util: Define strchrnul on macOS.

strchrnul is not available on macOS.

pipe_loader.c:141:14: error: implicit declaration of function 'strchrnul' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      next = strchrnul(library_paths, ':');
             ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
src/util/u_string.h