]> git.pld-linux.org Git - packages/acm.git/commitdiff
- General patch makes acm build correctly and sparc patch should make it
authordeejay1 <deejay1@pld-linux.org>
Thu, 1 May 2003 21:17:39 +0000 (21:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
   on sparc of course....

Changed files:
    acm-general.patch -> 1.1
    acm-sparc.patch -> 1.1

acm-general.patch [new file with mode: 0644]
acm-sparc.patch [new file with mode: 0644]

diff --git a/acm-general.patch b/acm-general.patch
new file mode 100644 (file)
index 0000000..ae408f4
--- /dev/null
@@ -0,0 +1,51 @@
+--- acm-5.0/V/lib/Vlib.h.tim   Wed Jul  7 14:53:45 1999
++++ acm-5.0/V/lib/Vlib.h       Wed Jul  7 14:54:08 1999
+@@ -316,9 +316,6 @@
+       extern Status AlibAllocColor(Viewport *v, Colormap colormap, XColor *c);
+-#ifndef SYSV
+-      extern char *strdup(const char *);
+-#endif
+ #if (defined(_AIX) && defined(_IBMR2)) && !(defined(__GNUC__) \
+      && (__GNUC__ == 2 ))
+--- acm-5.0/V/lib/InitAWin.c.tim       Wed Jul  7 14:53:52 1999
++++ acm-5.0/V/lib/InitAWin.c   Wed Jul  7 14:54:01 1999
+@@ -6,7 +6,7 @@
+ #include <X11/Xlib.h>
+-extern char *malloc(size_t);
++/*extern char *malloc(size_t);*/
+ #ifdef HAS_FRAME_BUFFER
+ void
+--- acm-5.0/src/init.c.tim     Wed Jul  7 14:53:28 1999
++++ acm-5.0/src/init.c Wed Jul  7 14:54:18 1999
+@@ -70,14 +70,14 @@
+       char      libname[256];
+       if ((f = fopen(name, access)) == (FILE *) NULL) {
+-              strcpy(libname, "../objects/");
++              strcpy(libname, "/usr/lib/games/acm/");
+               strcat(libname, name);
+               if ((f = fopen(libname, access)) == (FILE *) NULL) {
+                       strcpy(libname, _acm_fopen_library_dir);
+                       strcat(libname, name);
+                       if ((f = fopen(libname, access)) == (FILE *) NULL) {
+                               strcpy (libname, SRCDIR);
+-                              strcat (libname, "/../objects/");
++                              strcat (libname, "/usr/lib/games/acm/");
+                               strcat (libname, name);
+                               if ((f = fopen(libname, access)) == (FILE *) NULL) {
+                                       fprintf(stderr, errmsg, name, _acm_fopen_library_dir, libname);
+@@ -102,7 +102,7 @@
+       strcpy(pname, name);
+       if (stat(name, &statbuf) != 0) {
+-              strcpy(pname, "../objects/");
++              strcpy(pname, "/usr/lib/games/acm/");
+               strcat(pname, name);
+               if (stat(pname, &statbuf) != 0) {
+                       strcpy(pname, _acm_fopen_library_dir);
diff --git a/acm-sparc.patch b/acm-sparc.patch
new file mode 100644 (file)
index 0000000..9ede7ed
--- /dev/null
@@ -0,0 +1,15 @@
+--- acm-5.0/src/joystick.c.tim Fri Jul 16 20:37:03 1999
++++ acm-5.0/src/joystick.c     Fri Jul 16 20:37:10 1999
+@@ -159,10 +159,10 @@
+ #ifdef TIOCM_RTS
+       flags = TIOCM_RTS | TIOCM_DTR | TIOCM_LE;
+-      if (ioctl(fd, TIOCMSET, &flags) == -1) {
++      /*if (ioctl(fd, TIOCMSET, &flags) == -1) {
+           perror("ioctl failed");
+           return -1;
+-      }
++      }*/     
+ #endif
+ /*
This page took 0.075665 seconds and 4 git commands to generate.