You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hpux.patch 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. *** xc.orig/config/cf/X11.tmpl Tue Jan 15 22:55:26 2002
  2. --- xc/config/cf/X11.tmpl Sun Sep 7 19:52:01 2003
  3. ***************
  4. *** 3120,3126 ****
  5. $(RM) index.raw file.nPS file.PS file.txt
  6. #endif
  7. ! #ifndef MakeSimpleDoc(file,srcs)
  8. #define MakeSimpleDoc(file,srcs) MakeDepSimpleDoc(file,srcs,srcs)
  9. #endif
  10. --- 3120,3126 ----
  11. $(RM) index.raw file.nPS file.PS file.txt
  12. #endif
  13. ! #ifndef MakeSimpleDoc
  14. #define MakeSimpleDoc(file,srcs) MakeDepSimpleDoc(file,srcs,srcs)
  15. #endif
  16. *** xc.orig/config/cf/hp.cf Wed Jan 17 16:22:31 2001
  17. --- xc/config/cf/hp.cf Mon Sep 8 19:54:52 2003
  18. ***************
  19. *** 131,137 ****
  20. #endif
  21. #define HPFastScrolling YES
  22. #ifndef BuildServer
  23. ! # define BuildServer __hp9000s700
  24. #endif
  25. #if OSMajorVersion < 10
  26. #define NeedBerklib (BuildServer|BuildFontServer)
  27. --- 131,137 ----
  28. #endif
  29. #define HPFastScrolling YES
  30. #ifndef BuildServer
  31. ! # define BuildServer YES
  32. #endif
  33. #if OSMajorVersion < 10
  34. #define NeedBerklib (BuildServer|BuildFontServer)
  35. ***************
  36. *** 139,145 ****
  37. #define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
  38. #if OSMajorVersion < 6 || (OSMajorVersion == 6 && OSMinorVersion < 2)
  39. ! # define ConnectionFlags -DTCPCONN /* no unix sockets */
  40. #endif
  41. #if OSMajorVersion > 8
  42. --- 139,145 ----
  43. #define XawI18nDefines -DHAS_WCHAR_H -DHAS_ISW_FUNCS
  44. #if OSMajorVersion < 6 || (OSMajorVersion == 6 && OSMinorVersion < 2)
  45. ! /*# define ConnectionFlags -DTCPCONN*/ /* no unix sockets */
  46. #endif
  47. #if OSMajorVersion > 8
  48. *** xc/config/cf/site.def.orig Tue Sep 9 17:42:56 2003
  49. --- xc/config/cf/site.def Tue Sep 9 17:43:07 2003
  50. ***************
  51. *** 84,90 ****
  52. #ifdef AfterVendorCF
  53. #ifndef ProjectRoot
  54. ! #define ProjectRoot /usr/X11R6
  55. #endif
  56. /*
  57. --- 84,90 ----
  58. #ifdef AfterVendorCF
  59. #ifndef ProjectRoot
  60. ! /*#define ProjectRoot /usr/X11R6*/
  61. #endif
  62. /*
  63. *** xc.orig/config/imake/imake.c Fri Dec 14 19:53:18 2001
  64. --- xc/config/imake/imake.c Mon Sep 8 19:35:33 2003
  65. ***************
  66. *** 288,293 ****
  67. --- 288,294 ----
  68. #define TRUE 1
  69. #define FALSE 0
  70. + #define FIXUP_CPP_WHITESPACE
  71. #ifdef FIXUP_CPP_WHITESPACE
  72. int InRule = FALSE;
  73. # ifdef INLINE_SYNTAX
  74. ***************
  75. *** 389,394 ****
  76. --- 390,401 ----
  77. FILE *tmpfd = NULL;
  78. char makeMacro[ BUFSIZ ];
  79. char makefileMacro[ BUFSIZ ];
  80. +
  81. + #ifdef FIXUP_CPP_WHITESPACE
  82. + fprintf(stderr,"\nFIXUP_CPP_WHITESPACE is defined!!\n\n");
  83. + #else
  84. + #error "FIXUP_CPP_WHITESPACE is not defined"
  85. + #endif
  86. program = argv[0];
  87. init();
  88. *** xc.orig/config/imake/imakemdep.h Fri Dec 14 19:53:19 2001
  89. --- xc/config/imake/imakemdep.h Tue Sep 9 16:38:18 2003
  90. ***************
  91. *** 48,54 ****
  92. #ifdef hp9000s800
  93. #define imake_ccflags "-DSYSV"
  94. #else
  95. ! #define imake_ccflags "-Wc,-Nd4000,-Ns3000 -DSYSV"
  96. #endif
  97. #endif
  98. --- 48,54 ----
  99. #ifdef hp9000s800
  100. #define imake_ccflags "-DSYSV"
  101. #else
  102. ! #define imake_ccflags "-DSYSV"
  103. #endif
  104. #endif
  105. ***************
  106. *** 211,217 ****
  107. * all colons). One way to tell if you need this is to see whether or not
  108. * your Makefiles have no tabs in them and lots of @@ strings.
  109. */
  110. ! #if defined(sun) || defined(SYSV) || defined(SVR4) || defined(hcx) || defined(WIN32) || defined(sco) || (defined(AMOEBA) && defined(CROSS_COMPILE)) || defined(__QNX__) || defined(__sgi)
  111. #define FIXUP_CPP_WHITESPACE
  112. #endif
  113. #ifdef WIN32
  114. --- 211,217 ----
  115. * all colons). One way to tell if you need this is to see whether or not
  116. * your Makefiles have no tabs in them and lots of @@ strings.
  117. */
  118. ! #if defined(sun) || defined(SYSV) || defined(SVR4) || defined(hcx) || defined(WIN32) || defined(sco) || (defined(AMOEBA) && defined(CROSS_COMPILE)) || defined(__QNX__) || defined(__sgi) || defined(hpux)
  119. #define FIXUP_CPP_WHITESPACE
  120. #endif
  121. #ifdef WIN32
  122. *** xc.orig/include/Xfuncs.h Fri Dec 14 19:53:25 2001
  123. --- xc/include/Xfuncs.h Sun Sep 7 20:10:35 2003
  124. ***************
  125. *** 42,48 ****
  126. #else
  127. #if defined(SYSV)
  128. #include <memory.h>
  129. ! void bcopy();
  130. #define bzero(b,len) memset(b, 0, len)
  131. #define bcmp(b1,b2,len) memcmp(b1, b2, len)
  132. #elif defined(__EMX__)
  133. --- 42,48 ----
  134. #else
  135. #if defined(SYSV)
  136. #include <memory.h>
  137. ! /*void bcopy();*/
  138. #define bzero(b,len) memset(b, 0, len)
  139. #define bcmp(b1,b2,len) memcmp(b1, b2, len)
  140. #elif defined(__EMX__)
  141. *** xc.orig/include/extensions/security.h Fri Dec 14 19:53:29 2001
  142. --- xc/include/extensions/security.h Fri Aug 1 17:43:44 2003
  143. ***************
  144. *** 110,115 ****
  145. --- 110,116 ----
  146. #include "input.h" /* for DeviceIntPtr */
  147. #include "property.h" /* for PropertyPtr */
  148. + #include "resource.h"
  149. /* resource type to pass in LookupIDByType for authorizations */
  150. extern RESTYPE SecurityAuthorizationResType;
  151. *** xc.orig/lib/font/Type1/fontfcn.c Fri Nov 23 19:21:31 2001
  152. --- xc/lib/font/Type1/fontfcn.c Sun Sep 7 19:29:27 2003
  153. ***************
  154. *** 47,52 ****
  155. --- 47,53 ----
  156. */
  157. /* $XFree86: xc/lib/font/Type1/fontfcn.c,v 1.11 2001/11/23 19:21:31 dawes Exp $ */
  158. + #include <stdlib.h>
  159. #ifndef FONTMODULE
  160. #include <stdio.h>
  161. #include <string.h>
  162. *** xc.orig/lib/font/Type1/objects.h Mon Aug 27 20:49:52 2001
  163. --- xc/lib/font/Type1/objects.h Sun Sep 7 19:29:37 2003
  164. ***************
  165. *** 50,56 ****
  166. #include <Xdefs.h>
  167. #include <Xfuncproto.h>
  168. #ifndef FONTMODULE
  169. ! #include <stdlib.h>
  170. #endif
  171. /*SHARED*/
  172. --- 50,56 ----
  173. #include <Xdefs.h>
  174. #include <Xfuncproto.h>
  175. #ifndef FONTMODULE
  176. ! /*#include <stdlib.h>*/
  177. #endif
  178. /*SHARED*/
  179. *** xc.orig/lib/xtrans/Xtransutil.c Tue Sep 9 17:40:14 2003
  180. --- xc/lib/xtrans/Xtransutil.c Tue Sep 9 17:40:20 2003
  181. ***************
  182. *** 503,514 ****
  183. if (updateOwner && !updatedOwner) {
  184. PRMSG(1, "mkdir: Owner of %s should be set to root\n",
  185. path, 0, 0);
  186. - sleep(5);
  187. }
  188. if (updateMode && !updatedMode) {
  189. PRMSG(1, "mkdir: Mode of %s should be set to %04o\n",
  190. path, mode, 0);
  191. - sleep(5);
  192. }
  193. return 0;
  194. }
  195. --- 503,512 ----
  196. *** xc.orig/programs/Xserver/vnc/Xvnc/xvnc.cc 12 Aug 2003 11:00:14 -0000
  197. --- xc/programs/Xserver/vnc/Xvnc/xvnc.cc 9 Sep 2003 16:15:53 -0000
  198. ***************
  199. *** 1221,1223 ****
  200. --- 1221,1229 ----
  201. miRegisterPointerDevice(screenInfo.screens[0], p);
  202. (void)mieqInit ((DevicePtr)k, (DevicePtr)p);
  203. }
  204. +
  205. + extern "C" {
  206. + void XTestGenerateEvent() {}
  207. + void XTestGetPointerPos() {}
  208. + void XTestJumpPointer() {}
  209. + }
  210. *** xc.orig/config/cf/vnc.def 7 Jul 2003 09:51:22
  211. --- xc/config/cf/vnc.def 9 Sep 2003 15:54:23
  212. ***************
  213. *** 9,14 ****
  214. --- 9,20 ----
  215. #define XnestServer NO
  216. #define XprtServer NO
  217. + #define BuildXKB NO
  218. + #define HasCplusplus YES
  219. + #define CplusplusCmd /opt/aCC/bin/aCC
  220. + #define CplusplusOptions -AA +W749 +W740
  221. + #define ProjectRoot /usr
  222. +
  223. #ifdef SunArchitecture
  224. #define ProjectRoot /usr/openwin
  225. #define HasGcc2 YES
  226. ***************
  227. *** 29,32 ****
  228. --- 34,38 ----
  229. #define ServerTarget(server,subdirs,objects,libs,syslibs) @@\
  230. CCLINK = $(CXXENVSETUP) $(CXX) @@\
  231. + CCOPTIONS = -AA @@\
  232. ServerTargetWithFlags(server,subdirs,objects,libs,syslibs,$(_NOOP_))