Skip to content
Permalink
Browse files

- Little modification to programmatically find grass version +Add

FreeBSD locale path
- Add missing includes in kpty
  • Loading branch information
lbartoletti authored and 3nids committed Jan 29, 2018
1 parent 8d4d08f commit 4c436e5d81b5ce273edf88824e23df090e33e411
Showing with 7 additions and 1 deletion.
  1. +5 −1 cmake/FindGRASS.cmake
  2. +2 −0 src/plugins/grass/qtermwidget/kpty.cpp
@@ -159,7 +159,11 @@ ENDIF (WIN32)

IF (UNIX)
IF (GRASS_FIND_VERSION EQUAL 7)
LIST(APPEND GRASS_PATHS /usr/lib64/grass70 /usr/lib/grass70 /usr/lib64/grass71 /usr/lib/grass71 /usr/lib64/grass72 /usr/lib/grass72)
FOREACH (PATH /usr/lib64 /usr/lib /usr/local)
FOREACH (VERSION grass70, grass71, grass72)
LIST(APPEND GRASS_PATHS "${PATH}/${VERSION}")
ENDFOREACH (VERSION)
ENDFOREACH (PATH)
ENDIF ()
ENDIF (UNIX)

@@ -28,6 +28,8 @@


#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#define HAVE_UTEMPTER
#define HAVE_UTMPX
#define HAVE_LOGIN
#define HAVE_LIBUTIL_H
#endif

0 comments on commit 4c436e5

Please sign in to comment.
You can’t perform that action at this time.