Re: Bug #2071 Updated: Compilation error in "functions/sysvshm.c"

From: Date: Fri, 20 Aug 1999 13:47:56 +0000
Subject: Re: Bug #2071 Updated: Compilation error in "functions/sysvshm.c"
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-10026@lists.php.net to get a copy of this message
Yes, that fixes it. The conflict is in <sys/seg.h> which gets included through other include files: -----8<----- struct segstate { ushort segflag; /* type of segment */ ushort num_segs; /* number of segments */ union { uint mfileno; /* file discreptor */ struct shmid_ds *shmptr; /* shared memory descriptor */ ulong srval; } u_ptrs; }; #define shm_ptr u_ptrs.shmptr #define segfileno u_ptrs.mfileno #define ss_srval u_ptrs.srval -----8<----- The name shm_ptr doesn't seem to appear in any other include files, so #undef'ing it should work without causing any bad side effects. /Mats Bug Database wrote: > ID: 2071 > Updated by: sas > Reported By: Mats.Bredell@udac.se > Status: Open > Bug Type: Compile Failure > Assigned To: > Comments: > > If you add a > > #undef shm_ptr > > after the last #include line in the original sysvshm.c file, does it work then? > > Full Bug description available at: http://bugs.php.net/?id=2071

Attachment: [text/x-vcard] Card for Mats Bredell Mats.Bredell.vcf
Attachment: [application/x-pkcs7-signature] S/MIME Cryptographic Signature smime.p7s
« previous php.dev (#10026) next »