[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
undefined macro: AF_INET ?
From: |
Assar Westerlund |
Subject: |
undefined macro: AF_INET ? |
Date: |
26 Dec 2000 21:25:33 +0100 |
User-agent: |
Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 |
Running current autoconf with this simple configure.in:
----------------------------------------------------------------------
dnl Process this file with autoconf to produce a configure script.
AC_INIT(foo, 0.0)
AC_PROG_CC
AC_MSG_CHECKING([foo])
AC_TRY_LINK([
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>],
[int s = socket(AF_INET, 0, 0);])
AC_OUTPUT(Makefile)
----------------------------------------------------------------------
I get:
configure.in:9: error: undefined macro: AF_INET
which is apperently since A[A-Z]_ is reserved for autoconf. But
surely this shouldn't be the case in included (and quoted) code?
/assar
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- undefined macro: AF_INET ?,
Assar Westerlund <=