libapr: fix configure when -Werror is in CFLAGS
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11524 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
414adc5728
commit
a98b34a60b
|
@ -461,7 +461,9 @@ AC_MSG_CHECKING(size of $2)
|
|||
AC_CACHE_VAL(AC_CV_NAME,
|
||||
[AC_TRY_RUN([#include <stdio.h>
|
||||
$1
|
||||
main()
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
FILE *f=fopen("conftestval","w");
|
||||
if (!f) exit(1);
|
||||
|
@ -517,7 +519,7 @@ AC_TRY_RUN([
|
|||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
main()
|
||||
int main(void)
|
||||
{
|
||||
char buf[1024];
|
||||
if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
|
||||
|
@ -942,7 +944,7 @@ else
|
|||
dnl <sys/types.h> should be available everywhere!
|
||||
cat > conftest.c <<EOF
|
||||
#include <sys/types.h>
|
||||
int main() { return 0; }
|
||||
int main(void) { return 0; }
|
||||
EOF
|
||||
MKDEP="true"
|
||||
for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
|
||||
|
|
|
@ -41,7 +41,7 @@ AC_DEFUN(APR_CHECK_WORKING_GETADDRINFO,[
|
|||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
void main(void) {
|
||||
int main(void) {
|
||||
struct addrinfo hints, *ai;
|
||||
int error;
|
||||
|
||||
|
@ -129,7 +129,7 @@ AC_DEFUN(APR_CHECK_WORKING_GETNAMEINFO,[
|
|||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
void main(void) {
|
||||
int main(void) {
|
||||
struct sockaddr_in sa;
|
||||
char hbuf[256];
|
||||
int error;
|
||||
|
@ -172,7 +172,7 @@ AC_DEFUN(APR_CHECK_NEGATIVE_EAI,[
|
|||
#include <netdb.h>
|
||||
#endif
|
||||
|
||||
void main(void) {
|
||||
int main(void) {
|
||||
if (EAI_ADDRFAMILY < 0) {
|
||||
exit(0);
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@ void *thread_routine(void *data) {
|
|||
return data;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int main(void) {
|
||||
pthread_t thd;
|
||||
pthread_mutexattr_t mattr;
|
||||
pthread_once_t once_init = PTHREAD_ONCE_INIT;
|
||||
|
@ -228,7 +228,7 @@ AC_DEFUN([APR_CHECK_PTHREAD_RECURSIVE_MUTEX], [
|
|||
#include <pthread.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main() {
|
||||
int main(void) {
|
||||
pthread_mutexattr_t attr;
|
||||
pthread_mutex_t m;
|
||||
|
||||
|
|
|
@ -455,7 +455,7 @@ if test "$apr_lfs_choice" = "yes"; then
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
void main(void)
|
||||
int main(void)
|
||||
{
|
||||
int fd, ret = 0;
|
||||
struct stat64 st;
|
||||
|
|
Loading…
Reference in New Issue