]> git.proxmox.com Git - mirror_qemu.git/blobdiff - slirp/tcp_timer.c
hw/s390x/ipl: Fix crash with virtio-scsi-pci device
[mirror_qemu.git] / slirp / tcp_timer.c
index 8f5dd772ad2f165921c146c081ff2c3b60e8d075..52ef5f91003a7dd497356403ae8114601702439e 100644 (file)
@@ -31,7 +31,7 @@
  */
 
 #include "qemu/osdep.h"
-#include <slirp.h>
+#include "slirp.h"
 
 static struct tcpcb *tcp_timers(register struct tcpcb *tp, int timer);
 
@@ -233,7 +233,7 @@ tcp_timers(register struct tcpcb *tp, int timer)
                 * to go below this.)
                 */
                {
-               u_int win = min(tp->snd_wnd, tp->snd_cwnd) / 2 / tp->t_maxseg;
+                u_int win = MIN(tp->snd_wnd, tp->snd_cwnd) / 2 / tp->t_maxseg;
                if (win < 2)
                        win = 2;
                tp->snd_cwnd = tp->t_maxseg;