Skip to content

Commit

Permalink
Small changes to PPP detection
Browse files Browse the repository at this point in the history
  • Loading branch information
winterheart committed Apr 1, 2019
1 parent 90aa1ee commit e7f157e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SET(PPP_PREFIX_DIR "/usr" CACHE STRING "Prefix dir for installed PPP")
TRY_RUN(RUN_RESULT COMPILE_RESULT
${PROJECT_BINARY_DIR}/CMakeTmp
${PROJECT_SOURCE_DIR}/ppp_path_check.c
COMPILE_DEFINITIONS "-DPLUGIN -DDESTDIR=\"${PPP_PREFIX_DIR}\""
COMPILE_DEFINITIONS "-DDESTDIR=\"${PPP_PREFIX_DIR}\""
RUN_OUTPUT_VARIABLE PPP_PLUGIN_PATH
)

Expand Down
5 changes: 5 additions & 0 deletions ppp_path_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/

#define PLUGIN 1
#ifndef DESTDIR
#define DESTDIR "/usr"
#endif

#include <pppd/pathnames.h>
#include <pppd/patchlevel.h>
#include <stdio.h>
Expand Down

0 comments on commit e7f157e

Please sign in to comment.