Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: client/server authentication (PR#1767)
Home

[Freeciv-Dev] Re: client/server authentication (PR#1767)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] Re: client/server authentication (PR#1767)
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 18 May 2003 08:24:59 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Sun, May 18, 2003 at 03:53:07AM -0700, ChrisK@xxxxxxxx wrote:
> lockfile.c
> lockfile.c: In function `create_lock':
> lockfile.c:87: `S_IRUSR' undeclared (first use in this function)
> lockfile.c:87: (Each undeclared identifier is reported only once
> lockfile.c:87: for each function it appears in.)
> lockfile.c:87: `S_IWUSR' undeclared (first use in this function)
> make[3]: *** [lockfile.o] Error 1
> make[3]: Leaving directory
> `/home/chris/freeciv/patched/auth6o/server/userdb'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/chris/freeciv/patched/auth6o/server'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/chris/freeciv/patched/auth6o'
> make: *** [all-recursive-am] Error 2

well, this is awful. What kind of a system do you have there?
S_IRUSR and S_IWUSR are posix. Check your config.h: make sure you have
#define HAVE_SYS_STAT_H 1 If you don't, make sure that .../sys/stat.h 
exists on your system. If it does, are S_IRUSR and S_IWUSR defined in the
header? If not, try this program:

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int main()
{
  int fd = open("test.file", O_RDWR|O_CREAT, S_IREAD|S_IWRITE);
  close(fd)
  return 0;
}

-mike



[Prev in Thread] Current Thread [Next in Thread]