]> git.sesse.net Git - x264/commit
Eliminate some compiler warnings on BSD
authorHenrik Gramner <henrik@gramner.com>
Wed, 13 Apr 2016 15:53:49 +0000 (17:53 +0200)
committerHenrik Gramner <henrik@gramner.com>
Wed, 20 Apr 2016 15:15:51 +0000 (17:15 +0200)
commit2102de2584e03fce4abac49eb37d5d7a0803380f
tree1af7e2d92def86a802a80970e2cab03a7010786a
parent64f4e24909924fceeea6e154d71b7dfbf586c7ea
Eliminate some compiler warnings on BSD

Include <strings.h> in addition to <string.h>. According to the POSIX
specification the prototypes for strcasecmp() and strncasecmp() are
declared in <strings.h>. On some systems they are also declared in
<string.h> for compatibility reasons but we shouldn't rely on that.

Define _POSIX_C_SOURCE only when it's required to do so. Some BSD
variants doesn't declare certain function prototypes otherwise.
common/osdep.h
configure