--- Begin Message ---
Subject: |
gnokii patch (for 6310) |
Date: |
Thu, 13 Mar 2003 06:27:30 -0800 (PST) |
Markus,
I needed to do a few fixes to get rid of some complaints
with gnokii-0.5.0rc1.
My environment is
gcc (GCC) 3.2 and linux kernel 2.4.18.
Nokia 6310
I am attaching a patch.
Here is a description of the issues:
1.
include/config.h.in:
xgnokii.c:
The patch adds "_GNU_SOURCE" to include/config.h.in, so
asprintf is found. (misc.h includes stdio.h which checks for
_GNU_SOURCE.) The _GNU_SOURCE definition in xgnokii.c never gets
included because stdio.h has already been read by the time
we get there. I added the definition to config.h in case
some other function in the future might also need the def.
2.
data.h:
Change send_message function to take a u16 instead of unsigned int. That's
how it's used.
3.
mgnokiidev.c:
Add an include for <string.h>, required by strdup.
P.S. Everything (including SMS, which I first had problems
with) now works on 6310. Thank you for working on gnokii.
Cheers,
Troy
Troy Korjuslommi Tksoft Inc.
address@hidden
gnokii-0.5.0rc1.patch
Description: 'diff' output text
--- End Message ---