oid2name optargs
Started by Magnus Haganderabout 19 years ago2 messages
oid2name requires an extern char*optarg to build on win32. Seems psql
just adds it like this, so I guess it can be done without any kind of
#ifdefs..
//Magnu <<oid2name.diff>> s
Attachments:
oid2name.diffapplication/octet-stream; name=oid2name.diffDownload
Index: contrib\oid2name/oid2name.c
===================================================================
RCS file: c:/prog/cvsrepo/pgsql/pgsql/contrib/oid2name/oid2name.c,v
retrieving revision 1.29
diff -c -r1.29 oid2name.c
*** contrib\oid2name/oid2name.c 11 Mar 2006 04:38:30 -0000 1.29
--- contrib\oid2name/oid2name.c 19 Oct 2006 20:18:41 -0000
***************
*** 62,67 ****
--- 62,68 ----
get_opts(int argc, char **argv, struct options * my_opts)
{
int c;
+ extern char *optarg;
/* set the defaults */
my_opts->quiet = false;