Skip to content

Commit

Permalink
Reuse ipcdir in src/pcscd.h.in
Browse files Browse the repository at this point in the history
This avoids an indirection and simplify the setup in meson(1).
  • Loading branch information
LudovicRousseau committed Apr 24, 2024
1 parent 2258a40 commit 88007cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ AC_ARG_ENABLE(ipcdir,
[ipcdir="${enableval}"], [ipcdir=false])

AS_IF([test x${ipcdir} = xfalse], [ipcdir="/run/pcscd"])
AC_DEFINE_UNQUOTED(USE_IPCDIR, "$ipcdir", [directory containing IPC files])
PCSCLITE_FEATURES="${PCSCLITE_FEATURES} ipcdir=${ipcdir}"

CPPFLAGS="-I\${top_srcdir}/src $CPPFLAGS"
Expand Down
2 changes: 1 addition & 1 deletion src/pcscd.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

#define PCSCLITE_CONFIG_DIR "@PCSCLITE_CONFIG_DIR@"

#define PCSCLITE_IPC_DIR USE_IPCDIR
#define PCSCLITE_IPC_DIR "@ipcdir@"
#define PCSCLITE_RUN_PID PCSCLITE_IPC_DIR "/pcscd.pid"

#define PCSCLITE_CSOCK_NAME PCSCLITE_IPC_DIR "/pcscd.comm"
Expand Down

0 comments on commit 88007cf

Please sign in to comment.