]> git.proxmox.com Git - mirror_qemu.git/blobdiff - gdbstub.c
bsd port (Markus Niemisto)
[mirror_qemu.git] / gdbstub.c
index 3560b269b93dcf3c74b6d10385771848bec8d6e7..19623102ded716588d28011ec2f4d374a4ff639d 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -532,7 +532,7 @@ static void gdb_accept(void *opaque, const uint8_t *buf, int size)
 
     /* set short latency */
     val = 1;
-    setsockopt(fd, SOL_TCP, TCP_NODELAY, &val, sizeof(val));
+    setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof(val));
     
     s = qemu_mallocz(sizeof(GDBState));
     if (!s) {