summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macgetargv.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Python/macgetargv.c')
-rw-r--r--Mac/Python/macgetargv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mac/Python/macgetargv.c b/Mac/Python/macgetargv.c
index 7c34360..2fbb28e 100644
--- a/Mac/Python/macgetargv.c
+++ b/Mac/Python/macgetargv.c
@@ -62,9 +62,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
static int arg_count;
static char *arg_vector[256];
-/* Duplicate a string to the heap */
+/* Duplicate a string to the heap. We also export this since it isn't standard
+** and others use it
+*/
-static char *
+char *
strdup(char *src)
{
char *dst = malloc(strlen(src) + 1);