From 8db134e7f457bcb069ec72bc4ee722e2af557c69 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 29 Oct 2015 10:48:23 +1100 Subject: Prevent name collisions with system glob (bz#2463) Move glob.h from includes.h to the only caller (sftp) and override the names for the symbols. This prevents name collisions with the system glob in the case where something other than ssh uses it (eg kerberos). With jjelen at redhat.com, ok djm@ --- sftp-client.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sftp-client.h') diff --git a/sftp-client.h b/sftp-client.h index f814b07d..14a3b818 100644 --- a/sftp-client.h +++ b/sftp-client.h @@ -21,6 +21,12 @@ #ifndef _SFTP_CLIENT_H #define _SFTP_CLIENT_H +#ifdef USE_SYSTEM_GLOB +# include +#else +# include "openbsd-compat/glob.h" +#endif + typedef struct SFTP_DIRENT SFTP_DIRENT; struct SFTP_DIRENT { -- cgit v1.2.1