mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
f7bef7e8d2
on -current again.
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
--- src/lib/Unidraw/catalog.c.orig Fri Dec 11 22:27:55 1992
|
|
+++ src/lib/Unidraw/catalog.c Tue Dec 28 22:51:04 1999
|
|
@@ -57,7 +57,9 @@
|
|
#include <IV-2_6/_enter.h>
|
|
|
|
#include <ctype.h>
|
|
+#if __FreeBSD_cc_version < 400002
|
|
#include <osfcn.h>
|
|
+#endif
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
@@ -67,6 +69,10 @@
|
|
#include <OS/types.h>
|
|
#include <unistd.h>
|
|
#endif
|
|
+#ifdef __FreeBSD__
|
|
+#include <unistd.h>
|
|
+#endif
|
|
+
|
|
#include <sys/file.h>
|
|
|
|
#ifdef __DECCXX
|
|
@@ -1502,7 +1508,8 @@
|
|
in >> graylevel;
|
|
|
|
} else if (graylevel == nograylevel) {
|
|
- for (int i = 0; in >> buf && i < patternHeight; i++) {
|
|
+ int i;
|
|
+ for (i = 0; in >> buf && i < patternHeight; i++) {
|
|
if (buf[0] == '>' || sscanf(buf, "%x", &data[i]) != 1) {
|
|
break;
|
|
}
|
|
@@ -1609,9 +1616,9 @@
|
|
|
|
} else {
|
|
istrstream in(definition, strlen(definition) + 1);
|
|
- int data[patternHeight];
|
|
+ int data[patternHeight], i;
|
|
|
|
- for (int i = 0; in >> buf && i < patternHeight; i++) {
|
|
+ for (i = 0; in >> buf && i < patternHeight; i++) {
|
|
if (sscanf(buf, "%x", &data[i]) != 1) {
|
|
break;
|
|
}
|