File: qnx.patch

package info (click to toggle)
blackened 1.8.0-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,916 kB
  • ctags: 3,389
  • sloc: ansic: 46,055; sh: 554; makefile: 270; perl: 46
file content (146 lines) | stat: -rw-r--r-- 3,616 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
configure/autoconf get a few things wrong for QNX.. these diffs should
straighten things out.  NOTE: GNU make (gmake) is the preferred make
for building ircii.

glen@qnx.com

Index: Makefile
*** Makefile~	Mon Jan  9 10:47:26 1995
--- Makefile	Mon Jan  9 10:53:03 1995
***************
*** 37,48 ****
  
  # Set this to the lex you want to use, and if they lex uses a library.
  
! LEX = flex
! LEXLIB = -lfl
  
  CC = cc
  DEFS = -DHAVE_CONFIG_H
! LIBS =  -lsun -ldir -lsocket -linet -lnsl_s -ldgc -lresolv
  
  # Set this to -g if you want to be able to debug the client, otherwise
  # use -O to have the compiler do some optimization instead.
--- 37,48 ----
  
  # Set this to the lex you want to use, and if they lex uses a library.
  
! LEX = lex
! LEXLIB = 
  
  CC = cc
  DEFS = -DHAVE_CONFIG_H
! LIBS =  -lsocket
  
  # Set this to -g if you want to be able to debug the client, otherwise
  # use -O to have the compiler do some optimization instead.
***************
*** 137,143 ****
  VERSION = 2.6.10
  
  SHELL = /bin/sh
! MAKE = make $(MFLAGS)
  MFLAGS ='CC=$(CC)'					\
  	'CFLAGS=$(CFLAGS)'				\
  	'DEFS=$(DEFS)'					\
--- 137,143 ----
  VERSION = 2.6.10
  
  SHELL = /bin/sh
! MAKE = gmake $(MFLAGS)
  MFLAGS ='CC=$(CC)'					\
  	'CFLAGS=$(CFLAGS)'				\
  	'DEFS=$(DEFS)'					\
Index: include/defs.h
*** include/defs.h~	Mon Jan  9 10:47:52 1995
--- include/defs.h	Mon Jan  9 14:14:13 1995
***************
*** 73,94 ****
  /* #undef NEED_WAITPID */
  
  /* define this if you have scandir() */
! #define HAVE_SCANDIR 1
  
  /* define this if you have memmove() */
! /* #undef HAVE_MEMMOVE */
  
  /* define this if you have setsid() */
! /* #undef HAVE_SETSID */
  
  /* define this if you have getsid() */
! /* #undef HAVE_GETSID */
  
  /* define this if you have getpgid() */
  #define HAVE_GETPGID 1
  
  /* define this if your getpgrp() doesn't take a pid argument */
! /* #undef BROKEN_GETPGRP */
  
  /* define this if you need getcwd() */
  #define NEED_GETCWD 1 
--- 73,94 ----
  /* #undef NEED_WAITPID */
  
  /* define this if you have scandir() */
! /* #undef HAVE_SCANDIR */
  
  /* define this if you have memmove() */
! #define HAVE_MEMMOVE 1
  
  /* define this if you have setsid() */
! #define HAVE_SETSID 1
  
  /* define this if you have getsid() */
! #define HAVE_GETSID 1
  
  /* define this if you have getpgid() */
  #define HAVE_GETPGID 1
  
  /* define this if your getpgrp() doesn't take a pid argument */
! #define BROKEN_GETPGRP 1
  
  /* define this if you need getcwd() */
  #define NEED_GETCWD 1 
***************
*** 136,142 ****
  #define HAVE_UNAME 1
  
  /* define this if you need strerror(3) */
! #define NEED_STRERROR 1
  
  /* Define if you have the <dirent.h> header file.  */
  #define HAVE_DIRENT_H 1
--- 136,142 ----
  #define HAVE_UNAME 1
  
  /* define this if you need strerror(3) */
! /* #undef NEED_STRERROR */
  
  /* Define if you have the <dirent.h> header file.  */
  #define HAVE_DIRENT_H 1
***************
*** 196,199 ****
  #define HAVE_UNISTD_H 1
  
  /* Define if you have the sun library (-lsun).  */
! #define HAVE_LIBSUN 1
--- 196,199 ----
  #define HAVE_UNISTD_H 1
  
  /* Define if you have the sun library (-lsun).  */
! /* #undef HAVE_LIBSUN */
Index: source/irc.c
diff -rc ircii-2.6.10/source/irc.c ircii-2.6.10-qnx/source/irc.c 
*** ircii-2.6.10/source/irc.c	Mon Jan  9 07:49:27 1995
--- ircii-2.6.10-qnx/source/irc.c	Mon Jan  9 15:20:46 1995
***************
*** 711,716 ****
--- 711,718 ----
  		{
  		case 0:
  		case -1:
+ 			if (errno == EBADF || errno == ESRCH)
+ 				irc_io_loop = 0;
  			if (cntl_c_hit)
  			{
  				if (one_key)