diff options
author | Biswapriyo Nath <nathbappai@gmail.com> | 2023-05-30 01:53:57 +0530 |
---|---|---|
committer | Frediano Ziglio <freddy77@gmail.com> | 2023-05-30 19:44:15 +0100 |
commit | 3dfd5243c7d8146ff25de4cd76657641118821be (patch) | |
tree | 71900377ae9a9113ef1821934a423d754fd85f58 | |
parent | 5e580eefac44d0c709afcf93eb5fca2fb353166a (diff) |
smartcard: Fix compiling for Windows platform
This fixes the following compiler error while targeting Windows platform.
../../server/smartcard.cpp:20:10: fatal error: arpa/inet.h: No such file or directory
20 | #include <arpa/inet.h>
| ^~~~~~~~~~~~~
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Acked-by: Frediano Ziglio <freddy77@gmail.com>
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | server/smartcard.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -88,5 +88,6 @@ Patches also contributed by Geoffrey McRae <geoff@hostfission.com> Antonio Larrosa <antonio.larrosa@gmail.com> Volker RĂ¼melin <vr_qemu@t-online.de> + Biswapriyo Nath <nathbappai@gmail.com> ....send patches to get your name here... diff --git a/server/smartcard.cpp b/server/smartcard.cpp index 709815a0..023cf523 100644 --- a/server/smartcard.cpp +++ b/server/smartcard.cpp @@ -17,7 +17,9 @@ */ #include <config.h> +#ifndef _WIN32 #include <arpa/inet.h> +#endif #ifdef USE_SMARTCARD #include <libcacard.h> #endif |