[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[screen-devel] [bug #33588] osdef.h:91: error: conflicting types for 'na
From: |
pirabarlen Cheenaramen |
Subject: |
[screen-devel] [bug #33588] osdef.h:91: error: conflicting types for 'naccept' |
Date: |
Fri, 17 Jun 2011 19:58:24 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 |
URL:
<http://savannah.gnu.org/bugs/?33588>
Summary: osdef.h:91: error: conflicting types for 'naccept'
Project: GNU Screen
Submitted by: pcthegreat
Submitted on: Fri 17 Jun 2011 07:58:13 PM GMT
Category: Build/Install
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: Cur Dev Sources
Fixed Release: None
Planned Release: 4.1.0
Work Required: None
_______________________________________________________
Details:
When trying to make on aix
osdef.h:91: error: conflicting types for 'naccept'
/usr/include/sys/socket.h:534: error: previous declaration of 'naccept' was
here
make: 1254-004 The error code from the last command is 1.
Here's the fix:
osdef.h, line in question:
89 #ifdef NAMEDPIPE
90 #else
91 extern int accept __P((int, struct sockaddr *, int *));
92 #endif
socket.h, line in question
532
533 #if !defined(_ALL_SOURCE) || defined(_KERNEL) || !defined(__cplusplus)
534 int accept(int, struct sockaddr *__restrict__, socklen_t
*__restrict__);
535 int getpeername(int, struct sockaddr *__restrict__, socklen_t
*__restrict__);
Line 91 should be:
extern int accept __P((int, struct sockaddr *, socklen_t *));
Also add #include <sys/socket.h> on top of your osdef.h otherwise it will
complain over and over. make && make install fine after that.
Cheers
Pirabarlen Cheenaramen
pcthegreat [AT] gmail
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33588>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [screen-devel] [bug #33588] osdef.h:91: error: conflicting types for 'naccept',
pirabarlen Cheenaramen <=