mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add a patch to fix compilation on recent versions of gcc,
which bail if a const is attempted to be modified. Reported by: Chris BeHanna <chris@behanna.org> Obtained from: KDE CVS
This commit is contained in:
parent
2047132176
commit
c3df519e6b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108533
4 changed files with 94 additions and 0 deletions
21
misc/kdeedu3/files/patch-kstars_kstars_indi_indidevapi.h
Normal file
21
misc/kdeedu3/files/patch-kstars_kstars_indi_indidevapi.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- kstars/kstars/indi/indidevapi.h 2004/03/29 17:55:49 1.1.2.2
|
||||
+++ kstars/kstars/indi/indidevapi.h 2004/04/10 12:38:18 1.1.2.3
|
||||
@@ -155,9 +155,9 @@ extern ISwitch *IUFindOnSwitch (const IS
|
||||
/* function to set all property switches off */
|
||||
extern void IUResetSwitches(const ISwitchVectorProperty *svp);
|
||||
|
||||
-extern int IUUpdateSwitches(const ISwitchVectorProperty *svp, ISState *states, char *names[], int n);
|
||||
+extern int IUUpdateSwitches(ISwitchVectorProperty *svp, ISState *states, char *names[], int n);
|
||||
|
||||
-extern int IUUpdateNumbers(const INumberVectorProperty *nvp, double values[], char *names[], int n);
|
||||
+extern int IUUpdateNumbers(INumberVectorProperty *nvp, double values[], char *names[], int n);
|
||||
|
||||
/* function to reliably save new text in a IText */
|
||||
extern void IUSaveText (IText *tp, const char *newtext);
|
||||
@@ -202,5 +202,5 @@ extern void ISNewSwitch (const char *dev
|
||||
#endif
|
||||
|
||||
/* For RCS Only -- Do Not Edit
|
||||
- * @(#) $RCSfile: indidevapi.h,v $ $Date: 2004/03/29 17:55:49 $ $Revision: 1.1.2.2 $ $Name: $
|
||||
+ * @(#) $RCSfile: indidevapi.h,v $ $Date: 2004/04/10 12:38:18 $ $Revision: 1.1.2.3 $ $Name: $
|
||||
*/
|
26
misc/kdeedu3/files/patch-kstars_kstars_indi_indidrivermain.c
Normal file
26
misc/kdeedu3/files/patch-kstars_kstars_indi_indidrivermain.c
Normal file
|
@ -0,0 +1,26 @@
|
|||
--- kstars/kstars/indi/indidrivermain.c 2004/03/29 17:55:49 1.2.2.3
|
||||
+++ kstars/kstars/indi/indidrivermain.c 2004/04/10 12:38:18 1.2.2.4
|
||||
@@ -546,7 +546,7 @@ IUResetSwitches(const ISwitchVectorPrope
|
||||
|
||||
/* Update property switches in accord with states and names. */
|
||||
int
|
||||
-IUUpdateSwitches(const ISwitchVectorProperty *svp, ISState *states, char *names[], int n)
|
||||
+IUUpdateSwitches(ISwitchVectorProperty *svp, ISState *states, char *names[], int n)
|
||||
{
|
||||
int i=0;
|
||||
|
||||
@@ -571,7 +571,7 @@ IUUpdateSwitches(const ISwitchVectorProp
|
||||
}
|
||||
|
||||
/* Update property numbers in accord with values and names */
|
||||
-int IUUpdateNumbers(const INumberVectorProperty *nvp, double values[], char *names[], int n)
|
||||
+int IUUpdateNumbers(INumberVectorProperty *nvp, double values[], char *names[], int n)
|
||||
{
|
||||
int i=0;
|
||||
|
||||
@@ -926,4 +926,4 @@ timestamp()
|
||||
}
|
||||
|
||||
/* For RCS Only -- Do Not Edit */
|
||||
-static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: indidrivermain.c,v $ $Date: 2004/03/29 17:55:49 $ $Revision: 1.2.2.3 $ $Name: $"};
|
||||
+static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: indidrivermain.c,v $ $Date: 2004/04/10 12:38:18 $ $Revision: 1.2.2.4 $ $Name: $"};
|
21
misc/kdeedu4/files/patch-kstars_kstars_indi_indidevapi.h
Normal file
21
misc/kdeedu4/files/patch-kstars_kstars_indi_indidevapi.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- kstars/kstars/indi/indidevapi.h 2004/03/29 17:55:49 1.1.2.2
|
||||
+++ kstars/kstars/indi/indidevapi.h 2004/04/10 12:38:18 1.1.2.3
|
||||
@@ -155,9 +155,9 @@ extern ISwitch *IUFindOnSwitch (const IS
|
||||
/* function to set all property switches off */
|
||||
extern void IUResetSwitches(const ISwitchVectorProperty *svp);
|
||||
|
||||
-extern int IUUpdateSwitches(const ISwitchVectorProperty *svp, ISState *states, char *names[], int n);
|
||||
+extern int IUUpdateSwitches(ISwitchVectorProperty *svp, ISState *states, char *names[], int n);
|
||||
|
||||
-extern int IUUpdateNumbers(const INumberVectorProperty *nvp, double values[], char *names[], int n);
|
||||
+extern int IUUpdateNumbers(INumberVectorProperty *nvp, double values[], char *names[], int n);
|
||||
|
||||
/* function to reliably save new text in a IText */
|
||||
extern void IUSaveText (IText *tp, const char *newtext);
|
||||
@@ -202,5 +202,5 @@ extern void ISNewSwitch (const char *dev
|
||||
#endif
|
||||
|
||||
/* For RCS Only -- Do Not Edit
|
||||
- * @(#) $RCSfile: indidevapi.h,v $ $Date: 2004/03/29 17:55:49 $ $Revision: 1.1.2.2 $ $Name: $
|
||||
+ * @(#) $RCSfile: indidevapi.h,v $ $Date: 2004/04/10 12:38:18 $ $Revision: 1.1.2.3 $ $Name: $
|
||||
*/
|
26
misc/kdeedu4/files/patch-kstars_kstars_indi_indidrivermain.c
Normal file
26
misc/kdeedu4/files/patch-kstars_kstars_indi_indidrivermain.c
Normal file
|
@ -0,0 +1,26 @@
|
|||
--- kstars/kstars/indi/indidrivermain.c 2004/03/29 17:55:49 1.2.2.3
|
||||
+++ kstars/kstars/indi/indidrivermain.c 2004/04/10 12:38:18 1.2.2.4
|
||||
@@ -546,7 +546,7 @@ IUResetSwitches(const ISwitchVectorPrope
|
||||
|
||||
/* Update property switches in accord with states and names. */
|
||||
int
|
||||
-IUUpdateSwitches(const ISwitchVectorProperty *svp, ISState *states, char *names[], int n)
|
||||
+IUUpdateSwitches(ISwitchVectorProperty *svp, ISState *states, char *names[], int n)
|
||||
{
|
||||
int i=0;
|
||||
|
||||
@@ -571,7 +571,7 @@ IUUpdateSwitches(const ISwitchVectorProp
|
||||
}
|
||||
|
||||
/* Update property numbers in accord with values and names */
|
||||
-int IUUpdateNumbers(const INumberVectorProperty *nvp, double values[], char *names[], int n)
|
||||
+int IUUpdateNumbers(INumberVectorProperty *nvp, double values[], char *names[], int n)
|
||||
{
|
||||
int i=0;
|
||||
|
||||
@@ -926,4 +926,4 @@ timestamp()
|
||||
}
|
||||
|
||||
/* For RCS Only -- Do Not Edit */
|
||||
-static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: indidrivermain.c,v $ $Date: 2004/03/29 17:55:49 $ $Revision: 1.2.2.3 $ $Name: $"};
|
||||
+static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: indidrivermain.c,v $ $Date: 2004/04/10 12:38:18 $ $Revision: 1.2.2.4 $ $Name: $"};
|
Loading…
Add table
Reference in a new issue