Ticket #12554: libfilezilla.patch

File libfilezilla.patch, 3.0 KB (added by Bjorn Ketelaars, 3 years ago)
  • configure.ac

    diff --git configure.ac configure.ac
    index 0e1b741..58562ef 100644
    else  
    109109  mac=0
    110110fi
    111111
     112# Check if we're on OpenBSD
     113if echo $host_os | grep 'openbsd' > /dev/null 2>&1; then
     114  openbsd=1
     115else
     116  openbsd=0
     117fi
     118
    112119# If neither, we're Unix(-like)
    113 if test "$mac" = "0" && test "$windows" = "0"; then
     120if test "$mac" = "0" && test "$windows" = "0" && test "$openbsd" = "0"; then
    114121  unix=1
    115122else
    116123  unix=0
    AC_SUBST(LIBFILEZILLA_LINGUAS_MO)  
    364371
    365372AM_CONDITIONAL(FZ_WINDOWS, test "$windows" = "1")
    366373AM_CONDITIONAL(FZ_MAC, test "$mac" = "1")
     374AM_CONDITIONAL(FZ_OPENBSD, test "$openbsd" = "1")
    367375AM_CONDITIONAL(FZ_UNIX, test "$unix" = "1")
    368376AM_CONDITIONAL(HAVE_CPPUNIT, [test "$have_cppunit" = "yes"])
    369377AM_CONDITIONAL([LOCALES_ONLY], [test "$localesonly" = "yes"])
  • lib/libfilezilla/libfilezilla.hpp

    diff --git lib/libfilezilla/libfilezilla.hpp lib/libfilezilla/libfilezilla.hpp
    index 13c7819..f25c84a 100644
     
    2424/// This macro is defined if libfilezilla has been compiled for OS X.
    2525#define FZ_MAC
    2626
    27 /// This macro is defined if libfilezilla has been compiled Unix(-like) platforms, but excluding OS X.
     27/// This macro is defined if libfilezilla has been compiled for OpenBSD.
     28#define FZ_OPENBSD
     29
     30/// This macro is defined if libfilezilla has been compiled Unix(-like) platforms, but excluding OS X and OpenBSD
    2831#define FZ_UNIX
    2932
    3033
  • lib/libfilezilla/private/defs.hpp

    diff --git lib/libfilezilla/private/defs.hpp lib/libfilezilla/private/defs.hpp
    index 8286233..05524d1 100644
     
    1212#endif
    1313
    1414// Set some mandatory defines which are used to select platform implementations
    15 #if !defined(FZ_WINDOWS) && !defined(FZ_MAC) && !defined(FZ_UNIX)
     15#if !defined(FZ_WINDOWS) && !defined(FZ_MAC) && !defined(FZ_UNIX) && !defined(FZ_OPENBSD)
    1616    #if defined(_WIN32) || defined(_WIN64)
    1717        #define FZ_WINDOWS 1
    1818    #elif defined(__APPLE__)
    1919        #define FZ_MAC 1
     20    #elif defined(__OpenBSD__)
     21        #define FZ_OPENBSD 1
    2022    #else
    2123        #define FZ_UNIX 1
    2224    #endif
  • lib/libfilezilla/string.hpp

    diff --git lib/libfilezilla/string.hpp lib/libfilezilla/string.hpp
    index 6a9b5e8..57b92d7 100644
    namespace fz {  
    3333typedef std::wstring native_string;
    3434typedef std::wstring_view native_string_view;
    3535#endif
    36 #if defined(FZ_UNIX) || defined(FZ_MAC)
     36#if defined(FZ_UNIX) || defined(FZ_MAC) || defined(FZ_OPENBSD)
    3737typedef std::string native_string;
    3838typedef std::string_view native_string_view;
    3939#endif
  • lib/libfilezilla/time.hpp

    diff --git lib/libfilezilla/time.hpp lib/libfilezilla/time.hpp
    index 6d49f51..61634b4 100644
    public:  
    172172    bool set(SYSTEMTIME const& ft, accuracy a, zone z);
    173173#endif
    174174
    175 #if defined(FZ_UNIX) || defined(FZ_MAC)
     175#if defined(FZ_UNIX) || defined(FZ_MAC) || defined(FZ_OPENBSD)
    176176    /** Sets timestamp from struct tm.
    177177     * \note Not available on Windows.
    178178     * \warning modifies passed structure