瀏覽代碼

fprobe: fix compile issue

Waldemar Brodkorb 2 月之前
父節點
當前提交
9d63a523a4
共有 1 個文件被更改,包括 20 次插入0 次删除
  1. 20 0
      package/fprobe/patches/patch-src_fprobe_c

+ 20 - 0
package/fprobe/patches/patch-src_fprobe_c

@@ -0,0 +1,20 @@
+--- fprobe-1.1.orig/src/fprobe.c	2005-01-30 09:43:35.000000000 +0100
++++ fprobe-1.1/src/fprobe.c	2024-02-20 07:18:30.403921178 +0100
+@@ -393,7 +393,7 @@ void gettime(struct Time *now)
+ 	now->usec = t.tv_usec;
+ }
+ 
+-inline time_t cmpmtime(struct Time *t1, struct Time *t2)
++time_t cmpmtime(struct Time *t1, struct Time *t2)
+ {
+ 	return (t1->sec - t2->sec) * 1000 + (t1->usec - t2->usec) / 1000;
+ }
+@@ -411,7 +411,7 @@ hash_t hash_flow(struct Flow *flow)
+ 	else return hash(flow, sizeof(struct Flow_TL));
+ }
+ 
+-inline void copy_flow(struct Flow *src, struct Flow *dst)
++void copy_flow(struct Flow *src, struct Flow *dst)
+ {
+ 	dst->sip = src->sip;
+ 	dst->dip = src->dip;