Closed Bug 1295032 Opened 8 years ago Closed 7 years ago

Remove definition of error numbers in portable.h for Windows.

Categories

(MailNews Core :: LDAP Integration, defect)

Unspecified
Windows
defect
Not set
minor

Tracking

(thunderbird55 fixed, seamonkey2.52 fixed)

RESOLVED FIXED
Thunderbird 55.0
Tracking Status
thunderbird55 --- fixed
seamonkey2.52 --- fixed

People

(Reporter: frg, Assigned: frg)

Details

Attachments

(1 file)

portable.h defines the following error numbers on Windows which result in a Macro redefinision warning during compile because they are in errno.h since VS2010:

#define EMSGSIZE WSAEMSGSIZE
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EHOSTUNREACH WSAEHOSTUNREACH

I believe the definition can just be removed.
Simple patch. Suite compiles with it but unable to test because no ldap in the house.
Assignee: nobody → frgrahl
Status: NEW → ASSIGNED
Attachment #8780917 - Flags: review?(Pidgeot18)
Comment on attachment 8780917 [details] [diff] [review]
1295032-errno.patch

For me, LDAP gives 500.000 compile warnings, with this patch there are a few less ;-)

I don't fully understand this business here, see for example:
https://dxr.mozilla.org/comm-central/search?q=EWOULDBLOCK&redirect=false
which is also defined to 35 a few times.

Anyway, let's see how we go with this.
Attachment #8780917 - Flags: review?(Pidgeot18) → review+
https://hg.mozilla.org/comm-central/rev/d6892a4d5a3b27319550ab99c20d0cbf8bc334a8
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 55.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: