Skip to content
Snippets Groups Projects
  1. Apr 06, 2022
  2. Apr 01, 2022
  3. Mar 22, 2022
  4. Mar 18, 2022
    • Andrew Deason's avatar
      util/osdep: Avoid madvise proto on modern Solaris · 8900c204
      Andrew Deason authored
      
      On older Solaris releases (before Solaris 11), we didn't get a
      prototype for madvise, and so util/osdep.c provides its own prototype.
      Some time between the public Solaris 11.4 release and Solaris 11.4.42
      CBE, we started getting an madvise prototype that looks like this:
      
          extern int madvise(void *, size_t, int);
      
      which conflicts with the prototype in util/osdeps.c. Instead of always
      declaring this prototype, check if we're missing the madvise()
      prototype, and only declare it ourselves if the prototype is missing.
      Move the prototype to include/qemu/osdep.h, the normal place to handle
      platform-specific header quirks.
      
      The 'missing_madvise_proto' meson check contains an obviously wrong
      prototype for madvise. So if that code compiles and links, we must be
      missing the actual prototype for madvise.
      
      Signed-off-by: default avatarAndrew Deason <adeason@sinenomine.net>
      Message-id: 20220316035227.3702-2-adeason@sinenomine.net
      Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      8900c204
  5. Mar 15, 2022
  6. Mar 07, 2022
  7. Mar 06, 2022
  8. Mar 03, 2022
  9. Mar 02, 2022
  10. Feb 21, 2022
Loading