mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
20 lines
538 B
Diff
20 lines
538 B
Diff
Fix "error: declaration of 'gVars' has a different language linkage"
|
|
--- sancp.cc.orig 2007-07-05 11:12:20.000000000 -0500
|
|
+++ sancp.cc 2020-08-20 04:44:23.000000000 -0500
|
|
@@ -54,7 +54,6 @@
|
|
*************/
|
|
|
|
int main(int argc, char *argv[]) {
|
|
- extern struct gvars gVars;
|
|
int cKey;
|
|
pid_t pid=0;
|
|
|
|
@@ -274,7 +273,6 @@
|
|
|
|
extern "C" void ProcessMyPacket(char *user, struct pcap_pkthdr * pkthdr, u_char * pkt)
|
|
{
|
|
- extern struct gvars gVars;
|
|
CBuffer *buffer;
|
|
struct cnx *new_cnx=0;
|
|
gVars.timeptr.tv_sec=pkthdr->ts.tv_sec;
|