head	1.4;
access;
symbols
	RELEASE_8_3_0:1.3
	RELEASE_9_0_0:1.3;
locks; strict;
comment	@# @;


1.4
date	2012.11.17.05.58.48;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2011.08.13.09.03.38;	author crees;	state Exp;
branches;
next	1.2;

1.2
date	2011.08.13.08.16.56;	author crees;	state Exp;
branches;
next	1.1;

1.1
date	2011.08.13.06.41.17;	author crees;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Switch exporter over
@
text
@$FreeBSD: head/lang/cparser/files/patch-firm_machine-c 300896 2012-07-14 13:54:48Z beat $

By rdivacky@@, enables cparser to work out of the box on amd64

--- driver/firm_machine.c	2011-04-14 16:51:46.000000000 +0200
+++ driver/firm_machine.c	2011-08-12 22:04:40.000000000 +0200
@@@@ -77,12 +77,18 @@@@
 machine_triple_t *firm_get_host_machine(void)
 {
 	machine_triple_t *machine = XMALLOC(machine_triple_t);
+#ifdef __amd64__
+	machine->cpu_type = xstrdup("x86_64");
+#else
 	machine->cpu_type = xstrdup("i386");
+#endif
 	machine->manufacturer = xstrdup("unknown");
 #if defined(_WIN32) || defined(__CYGWIN__)
 	machine->operating_system = xstrdup("win32");
 #elif defined(__APPLE__)
 	machine->operating_system = xstrdup("darwin");
+#elif defined(__FreeBSD__)
+	machine->operating_system = xstrdup("bsd");
 #else
 	machine->operating_system = xstrdup("linux");
 #endif
@


1.3
log
@Change +++ path too-- if one has a /tmp/firm_machine.c for whatever reason
patching fails.

PR:		ports/159627
Submitted by:	rdivacky
Approved by:	maintainer (implicit)
@
text
@d1 1
a1 1
$FreeBSD: ports/lang/cparser/files/patch-firm_machine-c,v 1.2 2011/08/13 08:16:56 crees Exp $
@


1.2
log
@Patch now applies properly -- path corrected.

Submitted by:	rdivacky
@
text
@d1 1
a1 1
$FreeBSD: ports/lang/cparser/files/patch-firm_machine-c,v 1.1 2011/08/13 06:41:17 crees Exp $
d6 1
a6 1
+++ /tmp/firm_machine.c	2011-08-12 22:04:40.000000000 +0200
@


1.1
log
@Fix on amd64 -- cputype is called x86_64 here.

PR:		ports/159627
Submitted by:	rdivacky
Approved by:	Armin Pirkovitsch <armin@@frozen-zone.org> (maintainer)
@
text
@d1 1
a1 1
$FreeBSD$
d5 1
a5 1
--- work/cparser-0.9.12/driver/firm_machine.c	2011-04-14 16:51:46.000000000 +0200
@

