summaryrefslogtreecommitdiff
path: root/net/aria2/patches/patch-ae
blob: 9ababb5754c50be7741aa630a05ae4e4da6ec284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ae,v 1.4 2007/12/14 12:46:23 bjs Exp $

--- src/main.cc.orig	2007-12-04 06:12:56.000000000 -0500
+++ src/main.cc
@@ -69,7 +69,13 @@
 #include <fstream>
 extern char* optarg;
 extern int optind, opterr, optopt;
+#if defined(HAVE_NBCOMPAT_H)
+#include <nbcompat/cdefs.h>
+#include <nbcompat/config.h>
+#include <nbcompat/getopt.h>
+#else
 #include <getopt.h>
+#endif
 
 #ifdef ENABLE_METALINK
 # include "Metalink2RequestGroup.h"