Hi Tom,
Thanks for your quick reply!
I have looked into those system header files, and don't know what
they're for because I'm not a C programmer :-(
Following is the Data block descriptor in the stream.h file that
declares the projid_t.
Thanks again,
Thanh
/*
* Data block descriptor
*
* NOTE: db_base, db_lim, db_ref and db_type are the *only* public
fields,
* as described in datab(9S). Everything else is
implementation-private.
*/
#define DBLK_REFMAX 255U
typedef struct datab {
frtn_t *db_frtnp;
unsigned char *db_base;
unsigned char *db_lim;
unsigned char db_ref;
unsigned char db_type;
unsigned char db_flags;
unsigned char db_struioflag;
void *db_cache; /* kmem cache descriptor */
struct msgb *db_mblk;
void (*db_free)(struct msgb *, struct datab *);
void (*db_lastfree)(struct msgb *, struct datab *);
#ifndef _LP64
void *db_pad; /* unused -- needed for
alignment*/
#endif
unsigned char *db_struiobase;
unsigned char *db_struiolim;
unsigned char *db_struioptr;
union {
double enforce_alignment;
unsigned char data[8];
unsigned u16:16; /* used to store hw-calculated cksum */
/*
* Union used for future extensions (pointer to data ?).
*/
} db_struioun;
fthdr_t *db_fthdr;
ftflw_t ***db_ftflw;
uid_t db_uid; /* Effective
userid */
/* project ID - EXPERIMENTAL - may change in future release */
projid_t db_projid;
} dblk_t;
Tom Lane wrote:
Thanh Q Lam <thanh.q.lam@alcatel.com> writes:
when I run: ./configure --without-readline, I get errors that aborts the
configure process: "checking types of arguments for accept()...
configure: error: could not determine argument types".
In file included from /usr/include/netinet/in.h:41,
from /usr/include/sys/socket.h:203,
from configure:10963:
/usr/include/sys/stream.h:307: parse error before "projid_t"
configure:10965: parse error before "accept"
configure:10965: conflicting types for `accept'
/usr/include/sys/socket.h:450: previous declaration of `accept'
configure:10965: warning: data definition has no type or storage class
Hmm --- the "parse error" suggests that sys/socket.h on your platform
has some inclusion dependency that we are failing to provide for. Can
you find out what it is? (Hint: look for "projid_t")
regards, tom lane