Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6775152

alsa (not freetype) version check program problem main arg order

XMLWordPrintable

    • b42
    • generic
    • generic
    • Not verified

      Date: Fri, 21 Nov 2008 11:50:44 -0800
      From: Martin Buchholz
      To: Kelly O'Hair

      Getting the args to main wrong is a little embarrassing.

      I suggest this patch:

      diff --git a/make/common/shared/Sanity.gmk b/make/common/shared/Sanity.gmk
      --- a/make/common/shared/Sanity.gmk
      +++ b/make/common/shared/Sanity.gmk
      @@ -1350,10 +1350,11 @@
       $(ALSA_VERSION_CHECK).c:
        @$(prep-target)
        @$(ECHO) "#include <alsa/asoundlib.h>\n" \
      - "int main(char** argv, int argc) {\n" \
      - " printf(\"%s\", SND_LIB_VERSION_STR);\n" \
      - " return 0;\n" \
      - "}\n" \
      + "#include <stdio.h>\n" \
      + "int main(int argc, char** argv) {\n" \
      + " printf(\"%s\", SND_LIB_VERSION_STR);\n" \
      + " return 0;\n" \
      + "}\n" \
                           > $@
       endif

            ohair Kelly Ohair (Inactive)
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: