0
0
mirror of https://github.com/bobwen-dev/htpdate synced 2025-04-11 23:00:44 +02:00

Compare commits

..

No commits in common. "main" and "v1.0.4rc1" have entirely different histories.

2 changed files with 5 additions and 21 deletions

View File

@ -1,21 +0,0 @@
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: system update
run: sudo apt-get update
- name: Install system dependencies
run: sudo apt-get install -y --fix-missing libcurl4-openssl-dev
- name: build
run: gcc -o htpdate htpdate.c -lcurl

View File

@ -480,6 +480,11 @@ int qsort_compare(const void *a, const void *b) {
return (diff > 0.0) - (diff < 0.0);
}
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
void adjust_system_time(TIME_T delta) {
#ifdef _WIN32
// Windows specific code