diff options
| author | Dave Love | 2003-09-23 12:40:39 +0000 |
|---|---|---|
| committer | Dave Love | 2003-09-23 12:40:39 +0000 |
| commit | 559c53b384623c4a28de64ef6cb5deae81b5e554 (patch) | |
| tree | 7fb34ca6415932d6a70ea34bf4103e59840f5cbe /src/process.c | |
| parent | 86bd9393c5e637ca0dac1cf019267c59bd2ee7ac (diff) | |
| download | emacs-559c53b384623c4a28de64ef6cb5deae81b5e554.tar.gz emacs-559c53b384623c4a28de64ef6cb5deae81b5e554.zip | |
(Fnetwork_interface_info): Use
HAVE_STRUCT_IFREQ... macros.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/process.c b/src/process.c index ca9a51601da..e2b122701c9 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -3483,7 +3483,7 @@ FLAGS is the current flags of the interface. */) | |||
| 3483 | return Qnil; | 3483 | return Qnil; |
| 3484 | 3484 | ||
| 3485 | elt = Qnil; | 3485 | elt = Qnil; |
| 3486 | #if defined(SIOCGIFFLAGS) && defined(ifr_flags) | 3486 | #if defined(SIOCGIFFLAGS) && defined(HAVE_STRUCT_IFREQ_IFR_FLAGS) |
| 3487 | if (ioctl (s, SIOCGIFFLAGS, &rq) == 0) | 3487 | if (ioctl (s, SIOCGIFFLAGS, &rq) == 0) |
| 3488 | { | 3488 | { |
| 3489 | int flags = rq.ifr_flags; | 3489 | int flags = rq.ifr_flags; |
| @@ -3511,7 +3511,7 @@ FLAGS is the current flags of the interface. */) | |||
| 3511 | res = Fcons (elt, res); | 3511 | res = Fcons (elt, res); |
| 3512 | 3512 | ||
| 3513 | elt = Qnil; | 3513 | elt = Qnil; |
| 3514 | #if defined(SIOCGIFHWADDR) && defined(ifr_hwaddr) | 3514 | #if defined(SIOCGIFHWADDR) && defined(HAVE_STRUCT_IFREQ_IFR_HWADDR) |
| 3515 | if (ioctl (s, SIOCGIFHWADDR, &rq) == 0) | 3515 | if (ioctl (s, SIOCGIFHWADDR, &rq) == 0) |
| 3516 | { | 3516 | { |
| 3517 | Lisp_Object hwaddr = Fmake_vector (make_number (6), Qnil); | 3517 | Lisp_Object hwaddr = Fmake_vector (make_number (6), Qnil); |
| @@ -3537,7 +3537,7 @@ FLAGS is the current flags of the interface. */) | |||
| 3537 | res = Fcons (elt, res); | 3537 | res = Fcons (elt, res); |
| 3538 | 3538 | ||
| 3539 | elt = Qnil; | 3539 | elt = Qnil; |
| 3540 | #if defined(SIOCGIFBRDADDR) && defined(ifr_broadaddr) | 3540 | #if defined(SIOCGIFBRDADDR) && defined(HAVE_STRUCT_IFREQ_IFR_BROADADDR) |
| 3541 | if (ioctl (s, SIOCGIFBRDADDR, &rq) == 0) | 3541 | if (ioctl (s, SIOCGIFBRDADDR, &rq) == 0) |
| 3542 | { | 3542 | { |
| 3543 | any++; | 3543 | any++; |
| @@ -3547,7 +3547,7 @@ FLAGS is the current flags of the interface. */) | |||
| 3547 | res = Fcons (elt, res); | 3547 | res = Fcons (elt, res); |
| 3548 | 3548 | ||
| 3549 | elt = Qnil; | 3549 | elt = Qnil; |
| 3550 | #if defined(SIOCGIFADDR) && defined(ifr_addr) | 3550 | #if defined(SIOCGIFADDR) && defined(HAVE_STRUCT_IFREQ_IFR_ADDR) |
| 3551 | if (ioctl (s, SIOCGIFADDR, &rq) == 0) | 3551 | if (ioctl (s, SIOCGIFADDR, &rq) == 0) |
| 3552 | { | 3552 | { |
| 3553 | any++; | 3553 | any++; |