diff --git a/convert-objects.c b/convert-objects.c
index a892013f0f37480fbf13a9511f2146d1681ba136..b49bce2681caec6cf6ea008aae6d9c58fff60639 100644 (file)
--- a/convert-objects.c
+++ b/convert-objects.c
-#define _XOPEN_SOURCE /* glibc2 needs this */
+#define _XOPEN_SOURCE 500 /* glibc2 and AIX 5.3L need this */
+#define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */
#include <time.h>
#include "cache.h"
unsigned char sha1[20];
struct entry *entry;
+ setup_git_directory();
+
if (argc != 2 || get_sha1(argv[1], sha1))
usage("git-convert-objects <sha1>");