mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
Fix build on sparc64 (all the world's not sunos, solaris or linnex)
This commit is contained in:
parent
58c6069b03
commit
8a2eff1563
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=72952
11
net/dictd/files/patch-decl.h
Normal file
11
net/dictd/files/patch-decl.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- decl.h.orig Sat Jan 11 18:39:08 2003
|
||||
+++ decl.h Sat Jan 11 18:38:58 2003
|
||||
@@ -28,7 +28,7 @@
|
||||
declarations for standard library calls. We provide them here for
|
||||
situations that we know about. */
|
||||
|
||||
-#if defined(__sparc__) && !defined(__linux__)
|
||||
+#if defined(__sparc__) && !(defined(__linux__) || defined(__FreeBSD__))
|
||||
/* Both SunOS and Solaris */
|
||||
extern int getrusage( int who, struct rusage * );
|
||||
extern void bcopy( const void *, void *, int );
|
11
net/dictd/files/patch-libmaa::decl.h
Normal file
11
net/dictd/files/patch-libmaa::decl.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- libmaa/decl.h.orig Fri Aug 2 12:43:15 2002
|
||||
+++ libmaa/decl.h Sat Jan 11 18:39:01 2003
|
||||
@@ -28,7 +28,7 @@
|
||||
declarations for standard library calls. We provide them here for
|
||||
situations that we know about. */
|
||||
|
||||
-#if defined(__sparc__) && !defined(linux)
|
||||
+#if defined(__sparc__) && !(defined(linux) || defined(__FreeBSD__))
|
||||
#include <sys/resource.h>
|
||||
/* Both SunOS and Solaris */
|
||||
extern int getrusage( int who, struct rusage * );
|
11
net/dictd/files/patch-libmaa::getopt.c
Normal file
11
net/dictd/files/patch-libmaa::getopt.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- libmaa/getopt.c.orig Sat Jan 11 18:40:00 2003
|
||||
+++ libmaa/getopt.c Sat Jan 11 18:40:12 2003
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
-#ifdef __sparc__
|
||||
+#if defined(__sparc__) && !defined(__FreeBSD__)
|
||||
extern int fprintf( FILE *, const char *, ... );
|
||||
extern int strncmp( const char *, const char *, int n );
|
||||
#endif
|
11
net/dictd/files/patch-libmaa::memtest.c
Normal file
11
net/dictd/files/patch-libmaa::memtest.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- libmaa/memtest.c.orig Sat Jan 11 18:40:21 2003
|
||||
+++ libmaa/memtest.c Sat Jan 11 18:40:45 2003
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
-#ifdef __sparc__
|
||||
+#if defined(__sparc__) && !defined(__FreeBSD__)
|
||||
extern int printf( const char *, ... );
|
||||
#endif
|
||||
|
11
net/dictd/files/patch-libmaa::strtol.c
Normal file
11
net/dictd/files/patch-libmaa::strtol.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- libmaa/strtol.c.orig Sat Jan 11 18:40:34 2003
|
||||
+++ libmaa/strtol.c Thu Aug 24 21:59:08 1995
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
||||
-#ifdef __sparc__
|
||||
+#if defined(__sparc__) && !defined(__FreeBSD__)
|
||||
extern int errno;
|
||||
extern int toupper(int);
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user