We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3294

Summary: Can't compile SDL_qsort.c after the license change
Product: SDL Reporter: Ed Sinjiashvili <ed.sinjiashvili>
Component: mainAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P2 CC: philipp.wiesemann
Version: HG 1.2   
Hardware: All   
OS: All   
Attachments: compile errors

Description Ed Sinjiashvili 2016-03-20 21:04:56 UTC
Created attachment 2397 [details]
compile errors

It seems that two standard #includes have been removed during the license upgrade (2e3396e62aa6).
Adding them back fixes the build.

diff -r 2f1eb5fa26ea src/stdlib/SDL_qsort.c
--- a/src/stdlib/SDL_qsort.c	Fri Mar 11 08:30:18 2016 -0800
+++ b/src/stdlib/SDL_qsort.c	Sun Mar 20 23:38:24 2016 +0300
@@ -18,6 +18,9 @@
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
 */
+#include "SDL_config.h"
+
+#include "SDL_stdinc.h"

 #ifndef HAVE_QSORT
Comment 1 Philipp Wiesemann 2016-03-23 20:54:29 UTC
Bug 3296 has a similar patch.
Comment 2 Philipp Wiesemann 2016-03-31 21:45:26 UTC
This was maybe fixed here (with a different patch):
https://hg.libsdl.org/SDL/rev/b1d2398f2655
Comment 3 Ryan C. Gordon 2017-05-25 00:20:07 UTC
Yes, this is fixed.

*** This bug has been marked as a duplicate of bug 3296 ***