blob: 0c790caba14b2fb26005a67fd34341cde37b3107 (
plain) (
blame)
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
|
--- gpilotd/gpilotd.c.orig Tue Sep 17 13:37:40 2002
+++ gpilotd/gpilotd.c Tue Sep 17 13:38:32 2002
@@ -46,6 +46,7 @@
#include <signal.h>
#include <unistd.h>
#include <stdio.h>
+#include <fcntl.h>
#include <libgnome/libgnome.h>
@@ -125,13 +126,13 @@
pilot_set_baud_rate (device);
}
- if (!(sd = pi_socket (PI_AF_SLP, PI_SOCK_STREAM, PI_PF_PADP))) {
+ if (!(sd = pi_socket (PI_PF_SLP, PI_SOCK_STREAM, PI_PF_PADP))) {
g_warning ("pi_socket: %s",strerror (errno));
if (error) *error = 1;
return -1;
}
- addr.pi_family = PI_AF_SLP;
+ addr.pi_family = PI_PF_SLP;
/*
Most important for networking
|