mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
16 lines
691 B
Diff
16 lines
691 B
Diff
diff -Naur grace-5.1.21.orig/configure grace-5.1.21/configure
|
|
--- grace-5.1.21.orig/configure 2007-02-16 17:44:49.000000000 -0500
|
|
+++ grace-5.1.21/configure 2008-04-03 08:54:45.000000000 -0400
|
|
@@ -15181,7 +15181,11 @@
|
|
int main(void) {
|
|
char *vlib;
|
|
vlib = nc_inq_libvers();
|
|
- if (strcmp(vlib, "3.0") < 0) {
|
|
+ /* nc_inq_libvers() has changed. It now returns a long string,
|
|
+ a portion of which is in quotes. Advance the pointer to
|
|
+ eliminate the first quote, then compare. But also need
|
|
+ to ensure backward compatibility. */
|
|
+ if ((strcmp(vlib, "3.0") || strcmp(++vlib, "3.0")) < 0) {
|
|
exit(1);
|
|
}
|
|
exit(0);
|