File: 0001-Removed-old-prototypes-not-required-for-Linux-macOS.patch

package info (click to toggle)
virtuoso-opensource 7.2.12%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 299,780 kB
  • sloc: ansic: 655,047; sql: 508,209; xml: 269,573; java: 84,064; javascript: 79,847; cpp: 37,662; sh: 32,429; cs: 25,702; php: 12,690; yacc: 11,661; lex: 7,933; makefile: 7,309; jsp: 4,523; awk: 1,719; perl: 1,013; ruby: 1,003; python: 326
file content (45 lines) | stat: -rw-r--r-- 1,205 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
From f8863b4b133677b2a38950640c517481acd31fc2 Mon Sep 17 00:00:00 2001
From: Patrick van Kleef <pkleef@openlinksw.com>
Date: Thu, 10 Apr 2025 13:59:21 +0000
Subject: [PATCH] Removed old prototypes not required for Linux/macOS

---
 libsrc/util/fnqual.c  | 5 +++--
 libsrc/util/getdate.y | 5 -----
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/libsrc/util/fnqual.c b/libsrc/util/fnqual.c
index 6788cfd73..6f67adb48 100644
--- a/libsrc/util/fnqual.c
+++ b/libsrc/util/fnqual.c
@@ -34,8 +34,9 @@
 #define SLASH	'/'
 #endif
 
-extern char *getcwd ();
-
+#ifdef WIN32
+#include <direct.h>
+#endif
 
 /*
  *  Return a fully qualified filename, or NULL on error.
diff --git a/libsrc/util/getdate.y b/libsrc/util/getdate.y
index af7b13418..3d3f1a4b8 100644
--- a/libsrc/util/getdate.y
+++ b/libsrc/util/getdate.y
@@ -452,11 +452,6 @@ o_merid	: /* NULL */
    the same signature as the function definition does. */
 #include "getdate.h"
 
-#ifndef WIN32 /* the windows dudes don't need these, does anyone really? */
-extern struct tm	*gmtime ();
-extern struct tm	*localtime ();
-extern time_t		mktime ();
-#endif
 
 /* Month and day table. */
 static TABLE const MonthDayTable[] = {
-- 
2.39.5