Skip to content

Commit 3eb53b2

Browse files
committed
parisc: Fix order of EREFUSED define in errno.h
When building gccgo in userspace, errno.h gets parsed and the go include file sysinfo.go is generated. Since EREFUSED is defined to the same value as ECONNREFUSED, and ECONNREFUSED is defined later on in errno.h, this leads to go complaining that EREFUSED isn't defined yet. Fix this trivial problem by moving the define of EREFUSED down after ECONNREFUSED in errno.h (and clean up the indenting while touching this line). Signed-off-by: Helge Deller <deller@gmx.de> Cc: stable@vger.kernel.org
1 parent ae14183 commit 3eb53b2

File tree

1 file changed

+2
-2
lines changed
  • arch/parisc/include/uapi/asm

1 file changed

+2
-2
lines changed

arch/parisc/include/uapi/asm/errno.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@
9797
#define ENOTCONN 235 /* Transport endpoint is not connected */
9898
#define ESHUTDOWN 236 /* Cannot send after transport endpoint shutdown */
9999
#define ETOOMANYREFS 237 /* Too many references: cannot splice */
100-
#define EREFUSED ECONNREFUSED /* for HP's NFS apparently */
101100
#define ETIMEDOUT 238 /* Connection timed out */
102101
#define ECONNREFUSED 239 /* Connection refused */
103-
#define EREMOTERELEASE 240 /* Remote peer released connection */
102+
#define EREFUSED ECONNREFUSED /* for HP's NFS apparently */
103+
#define EREMOTERELEASE 240 /* Remote peer released connection */
104104
#define EHOSTDOWN 241 /* Host is down */
105105
#define EHOSTUNREACH 242 /* No route to host */
106106

0 commit comments

Comments
 (0)