Error on make: LINE_MAX undeclared

Jacques Dirac <[email protected]>
Newsgroups gmane.linux.pam
Message-ID <CAKZGrbK6orYqMzTZtzDgr5=5A7B+xLTwidjE4HdAmz-de31_Jg@mail.gmail.com>
Hi,

When running make (after ./configure), I get the error:

libtool: compile:  i586-linux-gcc -DHAVE_CONFIG_H -I.
-I../../../modules/pam_localuser -I../.. -I../../../libpam/include
-I../../../libpamc/include -g -O2 -MT pam_localuser.lo -MD -MP -MF
.deps/pam_localuser.Tpo -c
../../../modules/pam_localuser/pam_localuser.c  -fPIC -DPIC -o
.libs/pam_localuser.o
../../../modules/pam_localuser/pam_localuser.c: In function
'pam_sm_authenticate':
../../../modules/pam_localuser/pam_localuser.c:66: error: 'LINE_MAX'
undeclared (first use in this function)
../../../modules/pam_localuser/pam_localuser.c:66: error: (Each
undeclared identifier is reported only once
../../../modules/pam_localuser/pam_localuser.c:66: error: for each
function it appears in.)
m

I'm using:
- pam v1.1.4
- gcc v4.4.4
- glibc v2.11.2
- Linux v2.6.35.12

Seems that this has something to do with limits.h (glibc) and POSIX,
but I don't understand it :-(.

What can I do to fix?

Hope someone can help me!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.