Skip to content

Commit

Permalink
upload-pack.c: <sys/poll.h> includes <ctype.h> on OpenBSD 3.8
Browse files Browse the repository at this point in the history
Merlyn reports that <sys/poll.h> on OpenBSD 3.8 includes <ctype.h>
and having our custom ctype (done in git-compat-util.h which is
included via cache.h) makes upload-pack.c uncompilable.  Try to
work it around by including the system headers first.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jul 1, 2006
1 parent fc046a7 commit e3a5629
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upload-pack.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include <signal.h>
#include <sys/wait.h>
#include <sys/poll.h>
#include "cache.h"
#include "refs.h"
#include "pkt-line.h"
#include "tag.h"
#include "object.h"
#include "commit.h"
#include "exec_cmd.h"
#include <signal.h>
#include <sys/poll.h>
#include <sys/wait.h>

static const char upload_pack_usage[] = "git-upload-pack [--strict] [--timeout=nn] <dir>";

Expand Down

0 comments on commit e3a5629

Please sign in to comment.