Closed Bug 547657 Opened 14 years ago Closed 14 years ago

gfxSharedImageSurface.cpp failed to compile on Solaris

Categories

(Core :: Widget, defect)

x86
OpenSolaris
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a3

People

(Reporter: ginnchen+exoracle, Assigned: ginnchen+exoracle)

References

Details

Attachments

(1 file, 1 obsolete file)

"../../../../gfx/thebes/src/gfxSharedImageSurface.cpp", line 64: Error: Formal argument 1 of type char* in call to shmdt(char*) is being passed unsigned char*.

man shmdt on Solaris

SYNOPSIS
     #include <sys/types.h>
     #include <sys/shm.h>

     void *shmat(int shmid, const void *shmaddr, int shmflg);

     int shmdt(char *shmaddr);

  Standard conforming
     int shmdt(const void *shmaddr);

I think we can cast to "char *", it should also work for the shmdt(void *) declaration.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → ginn.chen
Status: NEW → ASSIGNED
Attachment #428154 - Flags: review?(jmuizelaar)
Attachment #428154 - Attachment is patch: true
Attachment #428154 - Attachment mime type: application/octet-stream → text/plain
Version: unspecified → Trunk
I wonder if it would be better to just not build this file on Solaris. It shouldn't be needed there.
It is only needed for QT toolkit, right?

so
ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
CPPSRCS += \
        gfxSharedImageSurface.cpp \
        $(NULL)
endif

Is it correct?
Attached patch patch v2Splinter Review
From
http://mxr.mozilla.org/mozilla-central/search?string=gfxSharedImageSurface

It is only used by qt.
Attachment #429092 - Flags: review?(jmuizelaar)
Attachment #429092 - Flags: review?(jmuizelaar) → review+
Comment on attachment 428154 [details] [diff] [review]
patch

Not needed, unless use qt toolkit on Solaris.
Attachment #428154 - Flags: review?(jmuizelaar)
http://hg.mozilla.org/mozilla-central/rev/b4f8880a80c2
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Attachment #428154 - Attachment is obsolete: true
Flags: in-testsuite-
Target Milestone: --- → mozilla1.9.3a3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: