diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/common.h | 4 | ||||
| -rw-r--r-- | include/git2/errors.h | 4 | ||||
| -rw-r--r-- | include/git2/types.h | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index 0e9379804..1af045cff 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -55,6 +55,10 @@ #define GIT_WIN32 1 #endif +#ifdef __amigaos4__ +#include <netinet/in.h> +#endif + /** * @file git2/common.h * @brief Git common platform definitions diff --git a/include/git2/errors.h b/include/git2/errors.h index ccbc9fcf4..b4809fe15 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -20,6 +20,7 @@ GIT_BEGIN_DECL #ifdef GIT_OLD_ERRORS enum { GIT_SUCCESS = 0, + GIT_ERROR = -1, GIT_ENOTOID = -2, GIT_ENOTFOUND = -3, GIT_ENOMEM = -4, @@ -52,7 +53,7 @@ enum { GIT_ENOMATCH = -31, GIT_ESHORTBUFFER = -32, }; -#endif +#else /** Generic return codes */ enum { @@ -66,6 +67,7 @@ enum { GIT_PASSTHROUGH = -30, GIT_REVWALKOVER = -31, }; +#endif typedef struct { char *message; diff --git a/include/git2/types.h b/include/git2/types.h index b4b48afa3..691903005 100644 --- a/include/git2/types.h +++ b/include/git2/types.h @@ -32,6 +32,9 @@ GIT_BEGIN_DECL * stat() functions, for all platforms. */ #include <sys/types.h> +#ifdef __amigaos4__ +#include <stdint.h> +#endif #if defined(_MSC_VER) |
