summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBiswapriyo Nath <nathbappai@gmail.com>2023-05-30 01:53:57 +0530
committerFrediano Ziglio <freddy77@gmail.com>2023-05-30 19:44:15 +0100
commit3dfd5243c7d8146ff25de4cd76657641118821be (patch)
tree71900377ae9a9113ef1821934a423d754fd85f58
parent5e580eefac44d0c709afcf93eb5fca2fb353166a (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--AUTHORS1
-rw-r--r--server/smartcard.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index 6ad10e6e..a735d24d 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -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