git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11524
d0543943-73ff-0310-b7d9-
9358b9ac24b2
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);
#include <errno.h>
#include <string.h>
#include <stdio.h>
-main()
+int main(void)
{
char buf[1024];
if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
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
#include <sys/socket.h>
#endif
-void main(void) {
+int main(void) {
struct addrinfo hints, *ai;
int error;
#include <netinet/in.h>
#endif
-void main(void) {
+int main(void) {
struct sockaddr_in sa;
char hbuf[256];
int error;
#include <netdb.h>
#endif
-void main(void) {
+int main(void) {
if (EAI_ADDRFAMILY < 0) {
exit(0);
}
return data;
}
-int main() {
+int main(void) {
pthread_t thd;
pthread_mutexattr_t mattr;
pthread_once_t once_init = PTHREAD_ONCE_INIT;
#include <pthread.h>
#include <stdlib.h>
-int main() {
+int main(void) {
pthread_mutexattr_t attr;
pthread_mutex_t m;
#include <stdio.h>
#include <unistd.h>
-void main(void)
+int main(void)
{
int fd, ret = 0;
struct stat64 st;