> From [EMAIL PROTECTED] Wed Dec 19 12:44:56 2001
> Date: Wed, 19 Dec 2001 14:26:40 -0500 (EST)
> From: Alan Sundell <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: LPRng: porting to DigitalUNIX 4.0F [flock()]
>
>   This message is in MIME format.  The first part should be readable text,
>   while the remaining parts are likely unreadable without MIME-aware tools.
>   Send mail to [EMAIL PROTECTED] for more info.
>
> --0-1406276111-1008790000=:20819
> Content-Type: TEXT/PLAIN; charset=US-ASCII
>
> I've been trying (unsuccessfully so far) to get LPRng to run on
> DigitalUNIX 4.0F.
>
> The first problem I ran into was that it would not compile.  The patch
> attached is my humble attempt to fix that problem by moving the flock
> definition in portable.h out of #ifdef SUNOS and into an #ifndef
> HAVE_FLOCK_DEF, since the latter is provided by autoconf.
>
> It seems like that might be a better way to go, anyway, but you guys
> know the code better.
>
> Anyway, now it compiles, but it still doesn't work quite right.  More on
> that later.
>
> --Alan

Hmmm... I think you might want to use:

#ifdef HAVE_FLOCK
#ifndef HAVE_FLOCK_DEF
extern int flock( int fd, int operation );
#endif
#endif

By the way,  did you set the 'right' compile flags to get POSIX and
BSD compatibility?  This might be part of the problem.

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to